android webview 软键盘覆盖 输入框的 问题
2014-01-24 17:49
796 查看
今天有一个问题一直困扰着我。
内嵌一个webview 然后在输入框调出 android 软键盘时 一直 被覆盖。
各种调整参数设置了没用。。。
1、有把android:windowSoftInputMode="stateHidden|adjustResize“
2、在webview 外嵌套 一个scroll
3、在webview外嵌套 Linearlayout
种种办法都尝试过,但是效果不大。
后来在博客上看到一篇文章:引用官方文档
Window flag: hide all screen decorations (such as the status bar) while this window is displayed. This allows the window to use the entire display space for itself -- the status bar will be hidden when an app window with this flag set is on the top layer. A fullscreen window will ignore a value of SOFT_INPUT_ADJUST_RESIZE for the window's softInputMode field; the window will stay fullscreen and will not resize.
意思是说
全屏的窗口下面 会忽略
SOFT_INPUT_ADJUST_RESIZE ,不会进行调整。。
回想之下 ,我的webview 所在的activity 就是设置的全屏。。。
断然去掉 全屏设置,结果一切正常!
内嵌一个webview 然后在输入框调出 android 软键盘时 一直 被覆盖。
各种调整参数设置了没用。。。
1、有把android:windowSoftInputMode="stateHidden|adjustResize“
2、在webview 外嵌套 一个scroll
3、在webview外嵌套 Linearlayout
种种办法都尝试过,但是效果不大。
后来在博客上看到一篇文章:引用官方文档
Window flag: hide all screen decorations (such as the status bar) while this window is displayed. This allows the window to use the entire display space for itself -- the status bar will be hidden when an app window with this flag set is on the top layer. A fullscreen window will ignore a value of SOFT_INPUT_ADJUST_RESIZE for the window's softInputMode field; the window will stay fullscreen and will not resize.
意思是说
全屏的窗口下面 会忽略
SOFT_INPUT_ADJUST_RESIZE ,不会进行调整。。
回想之下 ,我的webview 所在的activity 就是设置的全屏。。。
断然去掉 全屏设置,结果一切正常!
相关文章推荐
- Android WebView加载页面的输入框被软键盘遮挡的问题
- android webview 软键盘覆盖输入框的解决办法
- android webview 页面,输入框软键盘遮挡问题(滑动页面)
- 全屏显示的包含webview的页面中弹出的软键盘覆盖输入框的问题
- Android WebView加载页面的输入框被软键盘遮挡的问题
- Android webView 软键盘覆盖输入框,webView页面底部显示不全
- Android WebView加载带有Input的输入框时点击无法弹出软键盘的问题解决
- 解决webview中输入框完成输入隐藏键盘后滑动界面又弹出软键盘问题
- 关于WebView点击输入框时手机软键盘不出问题
- Android WebView 软键盘遮挡输入框问题的解决方法
- android中webview加载html,输入框不能输入内容问题记录
- 解决Android软键盘弹出覆盖h5页面输入框问题
- Android WebView中软键盘会遮挡输入框相关问题
- Android webview网页里输入框被输入法遮挡问题
- 关于webview点击输入框无法弹出软键盘问题
- android 加载web view的时候,点击输入框,导致页面放大的问题解决方法
- android键盘遮挡webview的输入框问题
- Android 全屏情况下 webview中输入框被软件盘遮挡问题解决方案
- Android webview 全屏模式下输入框遮挡问题
- Android WebView中软键盘会遮挡输入框相关问题