AutoCompleteTextView mActv = (AutoCompleteTextView) findViewbyId(R.id.m_actv);
ArrayAdapter<String> AutoCompleteAdapter = new ArrayAdapter<String>(this,
R.layout.dropdown_text, Names);
mActv.setAdapter(AutoCompleteAdapter);
名稱是一個字符串數組。如何獲得在AutoCompleteTextView中選擇的文本的索引
是否可以從下拉列表中選擇文字索引?
謝謝。
你找到一個解決方案? – Accollativo
嘗試看看http://stackoverflow.com/questions/4819813/how-to-get-text-from-autocomplete-textview-android – 2014-11-09 13:30:01
解決方案: http://stackoverflow.com/questions/4819813/how -to-get-text-from-autocomplete-textview-android/37343444#37343444 – Shivang