我正在使用 MultiAutoCompleteTextView ,我想在 MultiAutoCompleteTextView 中附加选定的文本,我正在尝试
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
Map<String, String> map = (Map<String, String>) arg0
.getItemAtPosition(arg2);
String name = map.get("Name");
String number = map.get("Phone");
automulti.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
Log.d("ad:", automulti.getText().toString());
automulti.append(", " + name );
}