I'd probably just use a RecyclerView, I guess you just have to implement getItemCount and also get the right child for the position, depending on the expanded state of your items. Just set the item's left margin to something * level of nested and it should look like a tree, I think. Something like that should work, I hope.
View all comments
Show parent comment
1
u/[deleted] Sep 17 '18
I'd probably just use a RecyclerView, I guess you just have to implement getItemCount and also get the right child for the position, depending on the expanded state of your items. Just set the item's left margin to something * level of nested and it should look like a tree, I think. Something like that should work, I hope.