-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
设置StatusBarUtil之后,影响软键盘的弹出 #43
Comments
输入框这个应该需要你设置下相关的属性吧,这个和设置状态栏应该没关系的,不知道你现在解决了没 |
今天我也遇到这个问题 在清单文件设置 android:windowSoftInputMode="adjustResize|stateHidden"
|
这个跟透明状态栏有关,你的设备是5.0以后的版本么? |
有同样的问题,使用 StatusBarUtil.setTransparentForImageView(this, rlHeader);之后 软键盘不弹出,去掉之后 就可以了。5.0以上系统 |
状态栏透明会影响软键盘的弹出,应该是系统的问题,不是StatusBarUtil的问题。临时解决方案是用了 StatusBarUtil.setColor |
我也遇到了同样的问题,给键盘的enter键设置成搜索失效了 |
我也遇到了,在小米手机上,如果设置状态栏透明度,就会出现软键盘把EditText给遮住。 |
😔 |
@laobie 这个问题最佳兼容实践有人实验过没有 |
问题是出在,addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS),这个flag,是会影响键盘的,键盘弹出布局自动适配这个效果是会受到多种因素影响的,比如全屏或者....(建议看看相关的资料) |
@tanweijiu thanks~ 有解决方案分享一下,一起看一下。 |
@tanweijiu 这里面两个方法试过了,没起作用。还有我是配合https://blog.dreamtobe.cn/2015/09/01/keyboard-panel-switch/ |
@wangshaolei 透明会影响?setColor 会出现问题不 |
@laobie setColor不会出现问题。是FLAG_TRANSLUCENT_STATUS这个影响的,我也是昨天晚上发现的。 |
@OverRide |
@wangshaolei https://code.google.com/p/android/issues/detail?id=5497 然后你可以搜索一个工具类(AndroidBugSolutionAboutInputMethod.java)... |
@tanweijiu 没有搜到呢,有没有地址?thanks |
@tanweijiu 有没有很好解决方法呢,请教一下,你说的这个地址 貌似没有找到相关信息,谢谢~ |
如果是透明状态栏,把布局改成relativeLayout,然后想要顶起的布局放到bottom,就能顶起来了,你们可以试下,我以前遇到过。 |
同遇到 所以就没用透明了 好坑 |
activity的页面使用Rele布局,然后在底部放置EditText,点击输入框,软键盘弹出,但是输入框没有跟随向上滑
The text was updated successfully, but these errors were encountered: