SimpleCursorAdapter 真让我吐血啊
发布时间:2020-12-12 23:29:57 所属栏目:百科 来源:网络整理
导读:SimpleCursorAdapter An easy adapter to map columns from a cursor to TextViews or ImageViews defined in an XML file. You can specify which columns you want,which views you want to display the columns,and the XML file that defines the appear
SimpleCursorAdapter An easy adapter to map columns from a cursor to TextViews or ImageViews defined in an XML file. You can specify which columns you want,which views you want to display the columns,and the XML file that defines the appearance of these views. 官方文档上是这么说的。 但是我一直没有跑成功老是有错误,没办法try-catch了。结果说 '_id' does not exist 郁闷了,在sqlite里面必须要有一个主键并且名字是_id,哎,屈服了,主键我建。 结果不报错了,但是没有显示数据到listview。又是_id取数据的字段数组中要有_id, 总算OK了。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |