使用哈希图的 ArrayList 填充 ExpandableList

发布于 2024-10-01 04:26:40 字数 74 浏览 0 评论 0原文

谁能告诉我如何用哈希映射的数组列表填充可扩展列表。 实际上我已经制作了一个树数据结构,我想使用我的数据结构来填充可扩展列表......

Can anybody tell me how to populate an Expandable List with Array List of Hash maps.
Actually i have made a tree Data structure and i want to use my Data Structure to populate the Expandable List....

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

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

发布评论

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

评论(1

若有似无的小暗淡 2024-10-08 04:26:40

在此示例中,您将了解如何使用两个数组执行此操作:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html

所以稍微修改一下代码即可让它与你的哈希表一起工作......非常简单的事情。

In this example you will find how to do it with two arrays:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList1.html

So just modify the code a little bit to make it work with your HashTable... really simple stuff.

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