本文介绍了Android:& quot; setTextFilterEnabled& quot"方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
setTextFilterEnabled()方法有什么作用?
推荐答案
基本上,它可以过滤给定ListView的内容.但是,此处所述,警告是,过滤没有不会自动发生.根据该链接,您必须提供过滤逻辑,然后根据概述该方法的AbsListView文档,调用该方法的适配器还必须实现可过滤.
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.
希望有帮助...
这篇关于Android:& quot; setTextFilterEnabled& quot"方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!