AutoCompleteTextView - 禁用过滤 [英] AutoCompleteTextView - disable filtering
问题描述
我正在从 webservice
检索字符串列表,我想将它们列在 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.
我该怎么做?有没有办法轻松禁用它的内部过滤(最好没有子类化)我已将所有结果加载到 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
方法禁用过滤器,并制作我的 HTTPRequest
在文本更改"事件期间.
Eventually I subclassed ArrayAdapter
, Disabled the filters by Overriding it's getFilter
method, and Made my HTTPRequest
during the "text changed" events.
这篇关于AutoCompleteTextView - 禁用过滤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!