使用 CursorAdapter 的 ListView 分隔符
我有一个使用 CursorAdapter 填充的 ListView。我还想在我的 ListView 中添加一些分隔符。我已经使用 ArrayAdapter 完成了此操作,但我不确定如何使用 CursorAdapter 完成此操作。有这样做的策略吗?还是我运气不好?
I have a ListView which is populated using a CursorAdapter. I'd also like to have some separators in my ListView. I have accomplished this with an ArrayAdapter, but I'm not sure how to accomplish this with a CursorAdapter. Are there any strategies for doing so? Or am I out of luck?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是一些示例:
http://bartinger.at/listview-with-sectionsseparators/
http://sunil-android.blogspot.com/2013/08/section -header-listview-in-android.html
项目:
http://code.google.com/p/android-section-list/
http://code.google.com/p/android-amazing-listview/ 最好的
,
Here's some examples:
http://bartinger.at/listview-with-sectionsseparators/
http://sunil-android.blogspot.com/2013/08/section-header-listview-in-android.html
Projects:
http://code.google.com/p/android-section-list/
http://code.google.com/p/android-amazing-listview/
Best,
还有这个:http://code.google.com/p/android-section- list/,这里的节标题“粘”在列表的顶部,这使得它非常好。
Also this one: http://code.google.com/p/android-section-list/, here section header is "sticky" at the top of the list which makes it really nice.