fix: 修复回退错位问题
This commit is contained in:
@@ -86,12 +86,6 @@ public class VerificationCodeInput extends ViewGroup {
|
|||||||
@Override
|
@Override
|
||||||
public void afterTextChanged(Editable s) {
|
public void afterTextChanged(Editable s) {
|
||||||
if (s.length() == 0) {
|
if (s.length() == 0) {
|
||||||
int id = currentFocusChild.getId();
|
|
||||||
if (id > 0) {
|
|
||||||
EditText editText = (EditText) getChildAt((currentFocusChild.getId() - 1) % box);
|
|
||||||
editText.requestFocus();
|
|
||||||
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
checkAndCommit();
|
checkAndCommit();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<solid android:color="#FFFFFF" />
|
<solid android:color="#FFFFFF" />
|
||||||
<corners android:radius="3dip" />
|
<corners android:radius="2dip" />
|
||||||
<stroke
|
<stroke
|
||||||
android:width="1dip"
|
android:width="1dip"
|
||||||
android:color="#ffee33" />
|
android:color="#ffee33" />
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<solid android:color="#FaFafa" />
|
<solid android:color="#FaFafa" />
|
||||||
<corners android:radius="3dip" />
|
<corners android:radius="2dip" />
|
||||||
<stroke
|
<stroke
|
||||||
android:width="1dip"
|
android:width="1dip"
|
||||||
android:color="#BDC7D8" />
|
android:color="#BDC7D8" />
|
||||||
|
|||||||
Reference in New Issue
Block a user