1.先建立一个线性表L或数组A;
2.为L或A添加一个适配器;
3.新建ListView
4.setAdapter
重写ArrayAdapter里的getView(int position, View convertView, ViewGroup parent):
convertView------所使用的布局
parent-----线性表L或数组A
(1)使用LayoutInflater加载布局;
(2)找到布局文件里的控件;
(3)配置控件的属性,如ImageView的imageresource,text的内容。