2

I'm looking for a way to implement a Collapsible navigation Drawer items. later the Items and there Sub-Items will be dynamically loaded at the start of the app but for the beginning I would be happy if I get an Item with some sub-Items.

could someone provide someone provide some example code or a good tutorial?

Exmaple

globus243
  • 710
  • 1
  • 15
  • 31

3 Answers3

1

May I recommend a ExpandableListView without the default group indicator?

This would do exactly as you need :)

Unknownweirdo
  • 485
  • 6
  • 16
1

This repo is very helpful as far as setting up what you are looking for. A few kinks here and there, but right up your question's alley. Comment with any questions!

AlleyOOP
  • 1,536
  • 4
  • 20
  • 43
0

You can start with ExpandableListView and writing your own ExpandableListAdapter and use that as your drawer item.

Aovin Mahmud
  • 204
  • 3
  • 18