使用哈希图的 ArrayList 填充 ExpandableList
谁能告诉我如何用哈希映射的数组列表填充可扩展列表。 实际上我已经制作了一个树数据结构,我想使用我的数据结构来填充可扩展列表......
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在此示例中,您将了解如何使用两个数组执行此操作:
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.