【发布时间】:2015-05-18 10:41:23
【问题描述】:
我想从下面的一个Json中获取countryId、countryName的详细信息(请参考截图:http://i.imgur.com/DDs9rGT.png)。
这是我的代码:http://prntscr.com/76jbm4 这里: ArrayList companyName = new ArrayList(); AutoCompleteTextView country_editText; 此 AutoCompleteTextView 向用户显示国家名称列表,我想获取用户选择的国家/地区的 countryId。
问题是我无法传递包含 countryId 和 countryName 的 AutoCompleteTextView 列表。
【问题讨论】:
-
prntscr.com/76jbm4 这个链接有什么用?它不适合我
-
你有什么错误吗?
-
只传递CountyList并使用indexOf查找列表的id,而不是传递多个值。
-
prntscr.com/76jbm4 是我的程序的截图
-
@Muthu,我确实知道 indexOf 是什么...你能帮我解释一下吗
标签: android json arraylist autocompletetextview