Android 实现多深度 ExpandableList
我正在尝试显示一个多深度可扩展列表。也就是说,我们有一个表头 ID |学校 |等级 |名称
和我想显示一个可扩展列表,其中包含 学校 - 年级 - 名称
其中学校是第一深度,年级是第二深度,名称是叶节点。我知道如何获得成绩显示,但我无法弄清楚如何在其下方添加额外的叶子。
任何帮助将不胜感激!
谢谢! 乔恩
I am trying to display a multi-depth expandable list. That is, we have a table with the header ID | School | Grade | Name
and I want to show an expandable list that has
School
- Grade
- Name
Where the schools are the 1st depth, Grade's are the second depth, and the name is the leaf node. I understand how to get the grade display, but I am unable to figure out how to do the additional leaf below it.
Any help would be much appreciated!
Thanks!
Jon
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
截至目前,ExpendableList 不超过两级。但是,从 ExpandableListView 源,您应该能够创建一个自定义类来实现您所需要的。
As of now, there is no more-than-two levels ExpendableList. However, from the ExpandableListView source, you should be able to make a custom class achieving what you need.