You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SetMaskedText is not displaying text when it does not have all the values of the mask for example I have the following value 99 and the mask (##) #### - ####. Do you have any way to do it? I have now done the following
@Override
public void setMaskedText(String input) {
int length = getTexto().length();
String text = "";
if (input.length() < length) {
text = (new String(new char[length - input.length()]).replace("\0", " "));
}
super.setMaskedText(input + text);
}
public String getTexto() {
return getText().toString().replaceAll("[^ a-z0-9]", "");
}
The text was updated successfully, but these errors were encountered:
SetMaskedText is not displaying text when it does not have all the values of the mask for example I have the following value 99 and the mask (##) #### - ####. Do you have any way to do it? I have now done the following
The text was updated successfully, but these errors were encountered: