2013年10月12日

android各种适配器的用法(转)

摘要: ArrayAdapter_SimpleAdapter_CursorAdapter的区别数据源不同而已1. String[]: ArrayAdapter2. List>: SimpleAdapter3. 数据库Cursor: SimpleCursorAdapter使用ArrayAdapter(数组适配器)顾名思义,需要把数据放入一个数组以便显示。android.R.layout.simple_list_item_1是系统定义好的布局文件只显示一行文字SimpleAdapter能定义各种各样的布局出来,可以放上ImageView(图片),还可以放上Button(按钮),CheckBox(复选 阅读全文

posted @ 2013-10-12 14:08 彼岸花开啦 阅读(360) 评论(0) 推荐(0) 编辑

导航