简体   繁体   English

Android ListView中的节标题

[英]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 提前致谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM