1.先检查是否将AppTheme设置为android.xxx.xxx.Fullscreen.如是,去掉Fullscreen.
例如:android:Theme.NoTitleBar.Fullscreen去掉Fullscreen,将APPTheme设置为android:Theme.NoTitleBar
2.在需要软键盘弹出时不遮挡布局的页面的配置文件中设置android:windowSoftInputMode="adjustResize"
例如:
<activity
android:name=".MyActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>