Samuh
Samuh

Reputation: 36484

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 imlpementing such a control? How would one implement such a control in Android?

Upvotes: 15

Views: 29109

Answers (3)

lancha90
lancha90

Reputation: 5074

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

Example: How to implement multilevel ExpandableListview in Android?

Upvotes: 0

Jarek Potiuk
Jarek Potiuk

Reputation: 20077

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/

Upvotes: 11

blacharnia
blacharnia

Reputation: 2124

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

http://www.mail-archive.com/[email protected]/msg03587.html

Upvotes: 2

Related Questions