Android: what does “setTextFilterEnabled” method do?

后端 未结 3 1573
时光说笑
时光说笑 2020-12-30 01:15

What does the setTextFilterEnabled() method do?

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-30 01:26

    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...

提交回复
热议问题