android - ExpandableListView with non-expandable items -
i'm trying create expandablelistview in navigation drawer has other, non-expandable options. i'm trying create below:
all cereals. . . . . . . . . . . . v
archived cereals . . . . . . v
settings
help , feedback
about us
"all cereals" , "archived cereals" have dropdown indicator because groups children, while "settings," "about us," etc. wouldn't have indicator. i've looked on , thought of 2 approaches: modifying adapter inflate different layout empty groups, , stacking expandablelistview on normal listview.
modifying adapter not viable i'd hoped because group indicator attached automatically. can't figure out how make automatic attachment of dropdown indicator go away. help?
stacking expandablelistview on normal listview not viable i'd hoped, either, because couldn't xml cooperate 2 lists within 1 drawerlayout. help?
if static elements, not worth effort implementing similar viewitemtype. can consider putting them in footerview of listview.
try listview.addfooterview(view);
Comments
Post a Comment