今天有一个问题一直困扰着我。


内嵌一个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 就是设置的全屏。。。


断然去掉 全屏设置,结果一切正常!







更多相关文章

  1. RecyclerView嵌套ScrollView
  2. Android基于基于布局嵌套的页面导航实现
  3. android scrollview中嵌套expandablelistview
  4. Android 解决 RecyclerView 嵌套 ScrollView 数据显示不全的问题
  5. Android Studio App LinearLayout多层布局嵌套
  6. Android - ScrollView 使用小计 里面嵌套的View 如何设置全屏
  7. Android中ScrollView嵌套ListView只显示一行的解决方案
  8. Android中ScrollView中嵌套RecyclerView的完美解决办法
  9. Android NestedScrolling机制完全解析 带你玩转嵌套滑动

随机推荐

  1. Android(安卓)获取设备宽高分辨率
  2. android Buton使用
  3. Android(安卓)Material Design 实践(六)-
  4. [Android] Android(安卓)监听WIFI
  5. Android(安卓)Initializing a Build Envi
  6. Unity调用Android语音合成
  7. Android(安卓)学习--ListView 的使用(二)
  8. Android监听键盘显示和隐藏
  9. iOS vs. Android(安卓)ICS: Hardware Acc
  10. Android横竖屏总结