Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能AutoCompletTextView 从网站传递文本并向我显示结果ListView
AutoCompletTextView
ListView
解析 web 服务数据后,您会将结果放入数组中。
假设您将结果放入名为的数组中,resultData然后使用下面的代码。
resultData
arrayAdapter = new ArrayAdapter<String>(viewAutoComplete, android.R.layout.simple_list_item_1, resultData); autoCompleteText.setAdapter(arrayAdapter);