0

Is there a way to automatically create a ListFragment containing just TextViews and when an item in the list is clicked, create another ListFragment with TextViews and so on, up until an item with no children at which point clicking on it launches some other action?

Basically I just need to drill down through categories and subcategories and sub-subcategories and so on until I reach a value that doesn't have it's own list and instead corresponds to another action entirely.

I feel like there might be an easy way to do this through XML, but I'm not 100% sure.

4

0 回答 0