AutoCompleteTextView mActv = (AutoCompleteTextView) findViewbyId(R.id.m_actv); ArrayAdapter<String> AutoCompleteAdapter = new ArrayAdapter<String>(this,R.layout.dropdown_text,Names); mActv.setAdapter(AutoCompleteAdapter);
名称是一个String数组.
是否可以从下拉列表中获取文本的索引?
谢谢.
AutoCompleteTextView#getListSelection()