Hide filter popup


Filtering a ListView is easy. However, there is popup text that comes with it:

I couldn’t find reference to getting rid of this popup text. I had to do some exploring to come up with the following:

The code for that is:
Filter lFilter = mDataAdapter.getFilter();
lFilter.filter("Item to filter for");

Also to clear the filter:
Filter lFilter = mDataAdapter.getFilter();
lFilter.filter("");

Unfiltered ListView:

Standard Filtered ListView:

No Text Filtered ListView:

Leave a Reply

Your email address will not be published. Required fields are marked *