ArrayAdapter参数的不同使用

ArrayAdapter参数不同带来的效果不同
String[] array = {"a","b","c","d","e","f","g"};
final ArrayAdapter adapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, array);

这种使用不能动态添加
【ArrayAdapter参数的不同使用】
String[] array = {"a","b","c","d","e","f","g"};
ArrayList lst = new ArrayList();
lst.addAll(Arrays.asList(array));
final ArrayAdapter adapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, lst);
可以

    推荐阅读