[英]Section Header in Android ListView
Currently I have a RSS Feed application where the rss feeds are parsed and displayed. 目前我有一个RSS Feed应用程序,其中rss feed被解析和显示。 I followed the Simple RSS Feed example that can be found here
我按照可在此处找到的Simple RSS Feed示例进行操作
Now how do I add in a section header? 现在我如何添加节标题? Like after 5 feeds a header than the next five feeds.
就像在5之后输入标题而不是接下来的5个输入。
I follwed the example given here 我按照这里给出的例子
But it is not displaying anything. 但它没有显示任何东西。 Is it possible?
可能吗? Or I must have multiple listviews and have a header for each list and then display all the lists?
或者我必须有多个列表视图,每个列表都有一个标题,然后显示所有列表?
Thanks In Advance 提前致谢
There are many library available for this. 有很多图书馆可供选择。 I've used in my project.
我在我的项目中使用过。 Check it out:
看看这个:
https://code.google.com/p/android-amazing-listview/ https://code.google.com/p/android-amazing-listview/
http://sunil-android.blogspot.in/2013/08/section-header-listview-in-android.html http://sunil-android.blogspot.in/2013/08/section-header-listview-in-android.html
http://sunil-android.blogspot.in/2013/08/section-header-listview-in-android.html http://sunil-android.blogspot.in/2013/08/section-header-listview-in-android.html
http://w2davids.wordpress.com/android-sectioned-headers-in-listviews/ http://w2davids.wordpress.com/android-sectioned-headers-in-listviews/
https://github.com/emilsjolander/StickyListHeaders https://github.com/emilsjolander/StickyListHeaders
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.