I had the same issue. You can check out my implementation AndroidTreeView.

  • Its N-level tree.

  • Custom style for nodes

  • Save state after rotation

AndroidTreeView


Our company also open-sourced a solution for this. It is available as library, so very easy to use: http://code.google.com/p/tree-view-list-android/

enter image description here


i solved it for me, posting in a similar thread: other thread

enter image description here


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

Our implementation in an open-source proejct.


I have found an easier solution to this problem, as I myself am somewhat intermediate in my coding skills. In my situation, I needed a Windows-themed Tree View, which after brainstorming ideas, I was able to implement with hardly any coding!

Here's the trick: use a WebView and an embedded HTML page to display a custom Tree View, and use Android's super handy JavaScript communication interface to receive selections & clicks: Proof of Concept Example on Android-er Blog

With this power we can take advantage of a large collection of JS/CSS control snippets around the web. Themeable Windows7-Style jQuery TreeView control -- jsTree

Lot's of possibilities and power with Android out there, happy coding!