我正在使用 ListView 来实现带有数组过滤器的搜索。但是当我的键盘打开时, ListView 的高度设置为屏幕的剩余高度并且滚动不起作用。一旦我关闭键盘,高度保持不变(小)但滚动工作为什么?
最佳答案
确保ListView
的高度为match_parent
:
<ListView
android:layout_width="match_parent"
android:layout_height="match_parent" />
关于android - 当键盘打开时 ListView 高度变化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22591909/