NavController menuitems
Is there a way to create a table view controller class that just loads menus until it's reached the end, sort of like this:
Parent - has 5 submenus - 2 sub-sub menus
Parent2 - has 3 submenus - 1 sub-sub menu
Parent3 - has 15 submenus - no sub-sub menus
Parent4 - has 12 submenus - 5 sub-sub menus
So I'm think of instead of making 3 view controllers:
(Sub menus & sub-sub menus), I'll just pop the same view on top of that with different values( the sub menus of its parent)...
Is there a way to handle, let's say, infinite sub menus, from just one class? Or do I have to create the view controllers for everything section?
In other words, I don't wanna to go back to the app, and add another viewcontroller because theres now a sub menu for a sub sub menu.
It's reading all the info from an XML file's attributes.
|