简体   繁体   English

如何在ExpandableListView上添加级别?

[英]How to add a level on a ExpandableListView?

我正在学习本教程: http : //www.vogella.com/tutorials/AndroidListView/article.html#expandablelistview_concept ,我想向列表中添加另一个级别,然后将子级添加到第二个级别,如何修改上面的教程?

There are many other posts about n-level lists. 还有许多其他有关n级列表的帖子。 The key will be within your BaseExpandableListAdaper and possibly using some kind of tree to store the groups and values. 该键将位于您的BaseExpandableListAdaper并且可能使用某种树来存储组和值。 Nested adapters is the easiest way if you just need a 3-level list. 如果只需要3级列表,则嵌套适配器是最简单的方法。 See these articles: 请参阅以下文章:

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

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