如何在android中设置表格的节标题(即行分组)

发布于 2024-09-29 10:55:20 字数 627 浏览 1 评论 0原文

我正在实现一个 saxxml 解析器,我已经成功解析了它。但我需要实现一个功能,应该有一个部分标题,即 10 月 26 日的日期,该部分中的行应该是该日期的提要。我已经在 iPhone 中成功实现了它,但我对 Android 非常陌生,需要帮助如何添加节标题和对行进行分组。我现在使用列表视图来显示提要。有人对此有什么想法吗? 我也不知道如何对行进行分组。

请帮忙。

<day>
<date>October 19</date>
    <job>
        <value>xyz</value>
        <time>5:30</time>
    </job>
    <job>
        <value>abc</value>
        <time>6:30</time>
    </job>

10 月 20 日 XYZ 5:30 ABC 6:30

I am implementing a saxxml parser , i have successfully parsed it. But i need a feature to be implemented, there shpould be section heading which is a date say oct 26 and the rows in the section should be the feeds of that date. I have successfully implemented it in iphone, but i am very new to android and need help how to add section heading and group the rows. I am now using listview to show the feeds. Anyone has an idea abt this?
I have no idea about how to group the rows also.

Please help.

<day>
<date>October 19</date>
    <job>
        <value>xyz</value>
        <time>5:30</time>
    </job>
    <job>
        <value>abc</value>
        <time>6:30</time>
    </job>

October 20

xyz
5:30

abc
6:30

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

别低头,皇冠会掉 2024-10-06 10:55:20

它可以实现为可扩展的列表视图

It can be implemented as an expandable list view

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文