Manifest.xml文件windowSoftInputMode的值修改为“stateAlwaysHidden|adjustPan”禁止软键盘把导航栏顶起,在测试的时候有效果,APP发布后就失效了。
代码如下:
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="stateAlwaysHidden|adjustPan">
有人知道是什么原因吗?