[Android学习系列4]关于Listview和adapter的一些事

1.为listview里面的一行设定样式xml

2.写一个arraylist之类的容器 存放数据源 (或者使用数据库等)

3.写一个adapter适配器类

4.为arraylist绑定适配器

android为我们提供的adpter

SimpleAdapter    参考:http://blog.csdn.net/hellogv/article/details/4542668

BaseAdapter      参考:http://blog.csdn.net/hellogv/article/details/4548659

ArrayAdapter     参考:

CursorAdapter   参考:

 更多参考资料:

使用Adapter为ListView提供数据(其一)

使用Adapter为ListView提供数据(其二)

使用Adapter为ListView提供数据(其三)

还有一些类似的类作参考

ListFragment

ListActivity

原文地址:https://www.cnblogs.com/sleeptothedeath/p/3680221.html