[英]Android:How can i make an AutoCompleteTextView to pass the text from a website and show me the results
我如何制作AutoCompletTextView
来传递网站中的文本并在ListView
向我显示结果
After parsing the webservice data you will get results into an array. 解析Web服务数据后,您将获得结果到一个数组中。
Let's say you are getting result into array named resultData
then use below code. 假设您将结果放入名为
resultData
数组中,然后使用以下代码。
arrayAdapter = new ArrayAdapter<String>(viewAutoComplete,
android.R.layout.simple_list_item_1, resultData);
autoCompleteText.setAdapter(arrayAdapter);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.