fix: 修复回退错位问题

This commit is contained in:
guangli.lgl
2017-03-02 19:38:40 +08:00
parent d71e06d0d4
commit 1520386bd8
4 changed files with 3 additions and 9 deletions

View File

@@ -48,7 +48,7 @@
/>
MIT
# MIT
MIT License

View File

@@ -86,12 +86,6 @@ public class VerificationCodeInput extends ViewGroup {
@Override
public void afterTextChanged(Editable s) {
if (s.length() == 0) {
int id = currentFocusChild.getId();
if (id > 0) {
EditText editText = (EditText) getChildAt((currentFocusChild.getId() - 1) % box);
editText.requestFocus();
}
} else {
checkAndCommit();
}

View File

@@ -2,7 +2,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFF" />
<corners android:radius="3dip" />
<corners android:radius="2dip" />
<stroke
android:width="1dip"
android:color="#ffee33" />

View File

@@ -3,7 +3,7 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FaFafa" />
<corners android:radius="3dip" />
<corners android:radius="2dip" />
<stroke
android:width="1dip"
android:color="#BDC7D8" />