Search code examples
androidlistviewandroid-actionbarsearchviewandroid-appcompat

ActionBar SearchView: overlay floating text


I'm trying to use SearchView provided in android.support.v7 to filter a Listview.

Everything seems fine, except for a "strange floating text" that appears in overlay over my typed text and listview rows (and doesn't disappear if I stop typing).

How can I disable it? What type of element is it?

Thank you in advance.

enter image description here


Solution

  • Solved: in onQueryTextChange I was using list.setFilterText(s) instead of filtering the array