摘要: SimpleAdapter的基本使用 SimpleAdapter(Context context, List data, int resource, String[] from, int[] to)构造方法: context 当前视图所关联的且正在使用的适配器所处的上下文对象 data 表示生成一个 阅读全文
posted @ 2018-10-09 17:10 SanguineBoy 阅读(183) 评论(0) 推荐(0)
摘要: BaseAdapter的基本使用 自定义适配器的步骤: 1.定义子类继承BaseAdapter 2.需要重写自定义适配器中相应的函数 3.创建自定义适配器对象并使用 public class MainActivity extends Activity { private ListView lv; p 阅读全文
posted @ 2018-10-09 16:48 SanguineBoy 阅读(329) 评论(0) 推荐(0)