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
private class MyTextWatcher implements TextWatcher {
@Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
}
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
}
@Override
public void afterTextChanged(Editable editable) {
String inputStr = editable.toString();
if (!TextUtils.isEmpty(inputStr)) {
char[] strArray = inputStr.toCharArray();
for (int i = 0; i < strArray.length; i++) {
// 不能大于输入框个数
if (i > mEtNumber) {
break;
}
setText(strArray[i] + "");
et.setText("");
}
}
}
}
No description provided.
The text was updated successfully, but these errors were encountered: