一般来说,当软键盘弹出时,我们不希望键盘把输入框挡住了。
当以下属性开启时,键盘可能会把输入框挡住。
1. Activit 的属性:
android:windowSoftInputMode="adjustPan"
2. Activit 的属性:
<item name="android:windowTranslucentStatus">true</item>
3. java代码:
window.getDecorView().setSystemUiVisibility(
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_STABLE);