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

关于进入activity 后EditText不能弹出键盘 #42

Closed
bei1999 opened this issue Aug 3, 2017 · 1 comment
Closed

关于进入activity 后EditText不能弹出键盘 #42

bei1999 opened this issue Aug 3, 2017 · 1 comment
Labels

Comments

@bei1999
Copy link

bei1999 commented Aug 3, 2017

进入含有edittext 的actiity后,键盘不能自动弹出,只有注释掉immersionbar 的初始化后就恢复了

@gyf-dev
Copy link
Owner

gyf-dev commented Aug 4, 2017

@bei1999 使用ImmersionBar的keyboardEnable带有两个参数的方法,第二个参数指定模式,如下

 keyboardEnable(true, WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE
                        | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)  //软键盘自动弹出

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

No branches or pull requests

2 participants