开发者

How to create a tree view in Android?

There are no controls in Android that provide Tree-like View. There is an ExpandableList View which I suspect could be used to creating one.

Have you tried i开发者_开发知识库mlpementing such a control? How would one implement such a control in Android?


Our company just open-sourced a small widget that is doing just that... You can see all the sources and add the project (as a library) to your own android project:

http://code.google.com/p/tree-view-list-android/


take a look at ExpandableListView. Besides, see following thread:

http://www.mail-archive.com/android-beginners@googlegroups.com/msg03587.html


this solutions are, very complicate. but can use a ExpandableListView of more levels.

Example: How to implement multilevel ExpandableListview in Android?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜