Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExpandableListView collapsing all parent items

Tags:

android

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

Thanks,

Aleksander

like image 759
Alexander Oleynikov Avatar asked May 17 '10 09:05

Alexander Oleynikov


1 Answers

int count =  mListAdapter.getGroupCount();
for (int i = 0; i <count ; i++)
  mListView.collapseGroup(i);
like image 141
Alex Volovoy Avatar answered Oct 19 '22 10:10

Alex Volovoy