AutoCompleteTextView - 禁用过滤 [英] AutoCompleteTextView - disable filtering
问题描述
我取回从 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屋!