r/androiddev • • Sep 16 '18

Why does Android development feel like hell?

[deleted] — view deleted post

206 Upvotes

174 comments sorted by

View all comments

Show parent comment

1

u/ArmoredPancake Sep 16 '18

What do you want to do with it?

0

u/[deleted] Sep 16 '18

[deleted] — view deleted 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.