显示pic是红色的,估计是在java.R文件里找不到
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//绑定的数据源
listView = (ListView) findViewById(R.id.listView);
//Array_Adapter(上下午,listview每个加载项所对应的每一个布局文件)
String[]arr_data={"盛俊阳1","张潘媛1","张潘媛2","盛俊阳2","盛俊阳3"};
dataList= new ArrayList<Map<String,Object>>();
arr_adapter=new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1,arr_data);
simp_adapter = new SimpleAdapter(this, getData(), R.layout.item, new String[]{"pic","text"}, new int[]{R.id.pic,R.id.text});
listView.setAdapter(simp_adapter);
AdapterView<ListAdapter> lsitView;
listView.setOnClickListener((OnClickListener) this);
listView.setOnScrollListener(this);
}