问题描述
- 安卓开发,加载数据显示ListView ListAdapter 问题
-
安卓开发,加载数据显示ListView正常listview = FindViewById(Resource.Id.lvKcxx);
//加载数据
datas = new List();
//datas.Add(new JxglList { title = "Elephant1", postman = "Big and Gray, but what the hey", addtime = "2015-11-12 12:12:12" });
//datas.Add(new JxglList { title = "Elephant2", postman = "Big and Gray, but what the hey", addtime = "2015-11-12 12:12:12" });
//datas.Add(new JxglList { title = "Elephant3", postman = "Big and Gray, but what the hey", addtime = "2015-11-12 12:12:12" });//listview.Adapter = new DataListAdapter(this, datas);
连接数据库后,换
datas.Add(new JxglList { title = list[i]["Title"].ToString(), postman = list[i]["PostMan"].ToString(), addtime = list[i]["AddTime"].ToString() });
出错
解决方案
http://www.open-open.com/lib/view/open1409300611932.html
时间: 2024-09-24 07:21:50