报错:ArrayAdapter requires the resource ID to be a TextView
在简单定义ArrayAdapter时
ArrayAdapter arrayAdapter=new ArrayAdapter(this,R.layout.XXX,数据);
第二个参数R.layout.XXX文件中只能有一个TestView,否则会报错:ArrayAdapter requires the resource ID to be a TextView
如:
android:la
原创
2017-03-16 15:28:30 ·
341 阅读 ·
0 评论