Android TreeView Tutorial.
Let's look at some examples.
This is an android draggabletreeview tutorial. This is a custom adapter view that can render items in a tree manner. The nodes in the tree can then be dragged and nested infinitely.
It's quite easy to use, once we've added dragtreeview component in our xml layout, we then reference it inside our mainactivity. We then instantiate as many treenodes as we like.
We can nest the items by adding them as children to specific treenodes. Of course we can do this programmatically in code or at runtime.
Views are nestable even at runtime. This is an adapterview, so we have SimpleTreeViewAdapter class. We instantiate it passing in the context as well as our root treenode. We this set adapter to our draggabletreeview.