在我的应用程序中,当软键盘打开时,我想覆盖部分布局。
我尝试在清单中使用此代码,正如许多StackOverflow问题中所建议的那样:
android:windowSoftInputMode="stateHidden|adjustPan"但是它没有起作用,而且我的网格视图中的项目仍然被推高。
编辑这里是我的布局:http://pastebin.com/U2SjNLeV
有什么建议吗?
发布于 2015-07-14 10:00:47
用ScrollView包装布局。
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
...
...
</ScrollView>https://stackoverflow.com/questions/31402676
复制相似问题