在Android应用程序中显示树结构(父子节点)

发布于 2025-01-02 06:17:53 字数 197 浏览 2 评论 0原文

我即将启动一个 android honeycomb 项目,我正处于决定我需要在我的 android 应用程序中显示“树”类型结构的控制器的阶段,其中包含我需要的节点和子节点(父子节点)可以帮助我做这样的事情的指南。在父节点上按下/点击后,节点的子节点将出现,节点可以包含诸如复选框等内容以获取用户输入。欢迎提出想法,但一些教程的链接可能非常有帮助。

谢谢 MGD

I am about to start a project for android honeycomb, I am in the phase to decide about the controllers i need to display the "tree" kind of structure in my android app with nodes and sub-nodes (parent-child nodes) I need a guideline that could help me to make such thing. the children nodes of a node will appear after the press/tap on the parent node, the nodes could contain something like checkbox etc to get the user input. Ideas are welcome, yet link to some tutorial could be really helpful.

Thanks
MGD

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

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

发布评论

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

评论(1

天煞孤星 2025-01-09 06:17:53

ExpandableListView 可能适合您的需要。

我相信默认情况下它可能只支持 1 级深度。但是,如果您需要更多级别,可以在网上找到它的修改版本,支持您想要的多个级别。

ExpandableListView might work for what you need.

I believe by default it may only support 1 level of depth. But if you need more levels there is a modified version of it online somewhere that supports as many levels as you want.

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