AutoCompleteTextView - 禁用过滤 [英] AutoCompleteTextView - disable filtering

查看:262
本文介绍了AutoCompleteTextView - 禁用过滤的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我取回从 Web服务字符串列表,我想一一列举了一个 AutoCompleteTextField 无论内置的 AutoCompleteTextField 过滤器。

I'm retrieving a list of strings from a webservice and I want to list them up on a AutoCompleteTextField regardless of the built-in AutoCompleteTextField filters.

我该怎么办呢?有没有一种方法来禁用它内部的过滤很容易(preferably没有子) 我已经加载的所有我的结果到 ArrayAdapter ,这个问题是由于过滤,其中一些没有显示出来。

How do I do that? is there a way to disable it's inner filtering easily (preferably without subclassing) I've loaded all my results into a ArrayAdapter, the problem is that some of them don't show up because of the filtering.

如果我走错了方向,请点我朝着正确的方向。

If I'm going in the wrong direction please point me to the right direction.

推荐答案

最后,我的子类 ArrayAdapter ,残疾人过滤器通过重写它的用getFilter 的方法,并提出了我的 HTT prequest 在文本已改变事件。

Eventually I subclassed ArrayAdapter, Disabled the filters by Overriding it's getFilter method, and Made my HTTPRequest during the "text changed" events.

这篇关于AutoCompleteTextView - 禁用过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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