tags:

views:

44

answers:

2

Hi

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

Thanks,

Aleksander

A: 

The below link will provie you the solution,

http://developer.android.com/reference/android/widget/ExpandableListView.html

Jothi
Thanks but there's no such a method which returns an array of items or collapleAll() like one.
Aleksander O
+1  A: 
int count =  mListAdapter.getGroupCount();
for (int i = 0; i <count ; i++)
  mListView.collapseGroup(i);
Alex Volovoy