We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
可以改下VerificationCodeView这个类里的删除监听方法:
Sorry, something went wrong.
可以改成这样
/** * 监听删除 */ private void onKeyDelete() { for (int i = mPwdTextViews.length - 1; i >= 0; i--) { PwdTextView tv = mPwdTextViews[i]; if (!tv.getText().toString().trim().equals("")) { if (mEtPwd) { tv.clearPwd(); } tv.setText(""); // 添加删除完成监听 tv.setBackgroundDrawable(mEtBackgroundDrawableNormal); if (i == 0) { mPwdTextViews[0].setBackgroundDrawable(mEtBackgroundDrawableFocus); } else { if (i < mEtNumber) { mPwdTextViews[i - 1].setBackgroundDrawable(mEtBackgroundDrawableFocus); } } // 添加输入完成的监听 if (inputCompleteListener != null) { inputCompleteListener.inputComplete(); } break; } } }
No branches or pull requests
The text was updated successfully, but these errors were encountered: