当AutoCompleteTextView和MultiAutoCompleteTextView控件同时存在于一个页面上时,运行程序时,在自己的手机上没有出现提示安装的信息,是什么原因?(该程序运行没有提示错误)
package com.example.mook.kongjian;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.MultiAutoCompleteTextView;
/**
* Created by Administrator on 2016-03-13.
*/
public class MainActivity extends Activity {
private AutoCompleteTextView atCompleteTextView;
private String[] res = {"LAKERSKB", "LAKERSMJ", "LAKERWC", "SUNS"};
private String[] res1 = {"LAKERSSO", "LAKERSJW", "SUPERS"};
private MultiAutoCompleteTextView macTextView;
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
atCompleteTextView = (AutoCompleteTextView) findViewById(R.id.autoCompleteTextView1);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, res);
atCompleteTextView.setAdapter(adapter);
macTextView = (MultiAutoCompleteTextView) findViewById(R.id.multiAutoCompleteTextView);
ArrayAdapter<String> adapter1 = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, res1);
macTextView.setAdapter(adapter1);
macTextView.setTokenizer(new MultiAutoCompleteTextView.CommaTokenizer());
}
}