Alexander Oleynikov
Alexander Oleynikov

Reputation: 19388

ExpandableListView collapsing all parent items

I need a clue how to collapse (or find IDs for) all parent items in ExpandableListView.

Thanks,

Aleksander

Upvotes: 17

Views: 10817

Answers (1)

Alex Volovoy
Alex Volovoy

Reputation: 68474

int count =  mListAdapter.getGroupCount();
for (int i = 0; i <count ; i++)
  mListView.collapseGroup(i);

Upvotes: 39

Related Questions