I'm trying to create an ExpandableListView in my navigation drawer that has other, non-expandable options. I'm trying to create something like below:
All cereals. . . . . . . . . . . . V
Archived Cereals . . . . . . V
Settings
Help and Feedback
About Us
"All cereals" and "Archived cereals" would have the dropdown indicator because they are groups with children, while "Settings," "About Us," etc. wouldn't have the indicator. I've looked all over and thought of two approaches: modifying the adapter to inflate a different layout for empty groups, and stacking an ExpandableListView on a normal ListView.
Modifying the adapter was not as viable as I'd hoped because the group indicator is attached automatically. I can't figure out how to make the automatic attachment of the dropdown indicator go away. Help?
Stacking the ExpandableListView on a normal ListView was not as viable as I'd hoped, either, because I couldn't get the XML to cooperate with two lists within one DrawerLayout. Help?