Suggestions for building a treeview control in Android
You can use this library: https://github.com/bmelnychuk/AndroidTreeView to get your required tree-view. It's a N-level tree where you can control every single node in tree.
Usage
1) install: compile 'com.github.bmelnychuk:atv:1.2.+'
2) build tree-view:
TreeNode root = TreeNode.root();
TreeNode parent = new TreeNode("node-name");
TreeNode child0 = new TreeNode("child-node-name-1");
TreeNode child1 = new TreeNode("child_node-name-2");
parent.addChildren(child0, child1);
root.addChild(parent);