ActionBar SearchView:覆盖浮动文本

时间:2014-10-14 10:33:59

标签: android listview android-actionbar searchview android-appcompat

我正在尝试使用SearchView中提供的android.support.v7来过滤Listview

一切似乎都很好,除了“strange floating text”出现在我的打字文本和listview行的叠加层中(如果我停止输入,则不会消失)。

如何禁用它?它是什么类型的元素?

提前谢谢。

enter image description here

1 个答案:

答案 0 :(得分:1)

解决:在onQueryTextChange中我使用list.setFilterText(s)而不是过滤数组