我需要限制用戶在單詞之間輸入多個空格。有沒有辦法限制每個字只有一個空格的用戶?在EditText中過濾多個空格(Android)
if (validateStatus
&& RegistraionRequestType.RegisterationCompleteReq.descdet.trim()
.length() < 50) {
Log.e("Validate---------------------- ",RegistraionRequestType.RegisterationCompleteReq.descdet+ " --ValidateXCalled");
warning = getResources().getString(R.string.description_msg);
registeration_frm_et_id_description.requestFocus();
validateStatus = false;
}