多层次的看法:expandablelistview [英] Multi level view: expandablelistview

查看:121
本文介绍了多层次的看法:expandablelistview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写多层次树。我没看expandablelistview,但它仅支持两个级别。我也看看其他问题(SO)及职位和最有前途的岗位我发现是的http:// mylifewithandroid .blogspot.com / 2011/02/3级膨胀,lists.html

I am trying to write multi level tree. I did look at expandablelistview, but it only supports two levels. I did look at other questions(SO) & posts and the most promising post i have found is http://mylifewithandroid.blogspot.com/2011/02/3-level-expandable-lists.html

据我所知,我将不得不写一些东西定制来处理多层次树。 什么是最好的建议的方法服用? 我可以添加一个exapandablelistview作为一个孩子的exapanablelistview ??

I understand that i will have to write something custom to handle multiple level tree. What is the best recommended approach to take? Can i add an exapandablelistview as a child to an exapanablelistview??

感谢

推荐答案

这是可能的,但它会使GUI结构过于复杂实现。

It's possible, but it would make the GUI structure too complicated to implement.

首先,你要知道,项目呈现的 ExpandableListView 由一个 BaseExpandableListAdapter 给出。你必须设计和实施适配器作为2级的项目的数量相同,因此,3级列表可以正确地对每个2级项呈现。

First, you have to know that the items rendered of ExpandableListView are given by a BaseExpandableListAdapter. You have to design and implement the same number of adapters as your level-2 items, so that the level-3 lists can be rendered correctly for each level-2 item.

我建议你重新设计的图形用户界面。多级 ExpandableListView 不仅复杂化code,也许还搞砸了屏幕。

I would suggest you to redesign the GUI. Multilevel ExpandableListView not only complicate the code, maybe also mess up the screen.

这篇关于多层次的看法:expandablelistview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆