Skip to content
New issue

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

有一些问题 #6

Open
TongHongYu opened this issue Nov 2, 2017 · 1 comment
Open

有一些问题 #6

TongHongYu opened this issue Nov 2, 2017 · 1 comment

Comments

@TongHongYu
Copy link

有一些需要设置密码的需求,会要求输入两次密码,切换键盘焦点时,键盘会收起,然后再次点击输入框才会弹出

@TongHongYu
Copy link
Author

加一个焦点监听,避免键盘失去焦点后收起
@OverRide
public void onFocusChange(View v, boolean hasFocus) {
if (hasFocus) {
showSoftInput();
} else {
hideSoftInput();
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant