方法一:非透明状态栏下使用adjustResize和adjustPan,或是透明状态栏下使用fitsSystemWindows=true属性

在AndroidManifest.xml对应的Activity里添加
android:windowSoftInputMode=”adjustPan”或是android:windowSoftInputMode=”adjustResize”属性

方法二:在界面最外层布局包裹ScrollView

方法三:监听Activity顶层View,判断软键盘是否弹起,对界面重新绘制

具体分析:https://blog.csdn.net/smileiam/article/details/69055963

如果还有存在问题可以试试去掉ScrollView 中的android:fillViewport="true" 在试试

更多相关文章

  1. EditText常用属性
  2. android 使用系统照相程序照相并存储、显示在界面上
  3. 模拟器无法启动,卡在android字样的界面上
  4. android 修改actionbar title文字颜色等属性
  5. Android ColorStateList使用方法
  6. 修改android项目sdk版本的方法

随机推荐

  1. Android(安卓)aidl 编译报couldn't find
  2. Android(安卓)ApiDemos示例解析(40):App->
  3. 使用Android(安卓)AlarmManager类定时执
  4. Android手机客户端通过JSP实现与Tomcat服
  5. Material Design系列,自定义Behavior实现A
  6. android ble 获取ServiceUUID和Character
  7. The option 'android.enableAapt2' is de
  8. android接收adb发送的系统广播及自定义广
  9. Android(安卓)MVP代码生成插件MVPHelper
  10. Android实现中文词组转大写字母