• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Navigation drawer item's sub items

Calvert Wong

Newbie
Jun 23, 2013
11
3
Hello fellow developers,

I am building an app and I want my navigation drawer items to have expandable sub items for example I have an item called Item 4, I clicked on it and it will expand and show me a list of sub items such as Option 1, Option2, and Option 3.

This is an example image I copy from other source. I am using the default navigation drawer in the android studio itself. I read a lot online and all of them implement the ExpandableListView which I am not familiar with. Is there a better way to do this? I just need some guides so that I can expand Item 4 when clicked and being able to select any of the options. Thanks

SNBAA.png
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones