摘要: public void Test (int i) { switch (i){ case 0: ... case 1: ... default: ... } 阅读全文
posted @ 2018-07-18 21:02 时光正好, 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 总结:生成列表需要的三个因素是:listView,适配器,数据源。适配器绑定数据源listView绑定适配器public class MainActivity extends Activity implements AdapterView.OnItemClickListener{//实现列表的监听接口 List data; private ListView listView; ... 阅读全文
posted @ 2018-07-18 20:50 时光正好, 阅读(277) 评论(0) 推荐(0) 编辑