Android的树形 [英] Android Treeview

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

问题描述

我知道有是<一个href="http://developer.android.com/reference/android/widget/ExpandableListView.html">ExpandableListView但只达到2水平支持。我需要一个真正的垂直树状列表,至少到〜5级(越多越好)。

I know there is the ExpandableListView but it only supports up to 2 levels. I need a true treeview vertical list with at least up to ~5 levels (more is better).

有什么建议?

编辑:

我看到谈谈使用自定义适配器,并根据项目级别设置填充。

I see talk about using a Custom Adapter and setting the padding based on the items level.

我有有一个ID和父ID对象的未排序的ArrayList中,我动态地添加项目到这个数组为好。

I have an unsorted ArrayList of objects that have an ID and parent ID, and I dynamically add items to this array as well.

谁能给我的我怎么能去这样做的一些例子?

Can anyone give me some examples of how I can go about doing this?

推荐答案

回答我的问题,因为我们这许多个月之前实施。

Answering my own question, since we implemented this many months ago.

我们的实现在开源proejct。

Our implementation in an open-source proejct.

这篇关于Android的树形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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