安卓:&是什么QUOT; setTextFilterEnabled"方法呢? [英] Android: what does "setTextFilterEnabled" method do?

查看:84
本文介绍了安卓:&是什么QUOT; setTextFilterEnabled"方法呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么在 setTextFilterEnabled()方式吗?

推荐答案

它基本上能够筛选对于给定的ListView的内容。然而,需要注意,所说明<一个href="http://groups.google.com/group/android-developers/browse%5Fthread/thread/22b015b031a13bb2">here是,过滤不自动发生。据该链接,你必须提供过滤逻辑,然后根据AbsListView文档,其中列出该方法,适配器调用该方法上还必须实现的Filterable

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

这篇关于安卓:&是什么QUOT; setTextFilterEnabled&QUOT;方法呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆