Android: what does "setTextFilterEnabled" method do?

Viewed 14742

What does the setTextFilterEnabled() method do?

3 Answers

It basically enables filtering for the contents of the given ListView. However, the caveat, as explained here is that the filtering doesn't happen automatically. According to that link, you have to provide the filtering logic and then according to the AbsListView docs that outline that method, the adapter you call that method on must also implement Filterable.

Hope that helps...

It is used for filtering the contents of the given ListView .when you type a letter then you will be automatically scrolled to that item if it is there in that view .

Related