Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2012 12:50
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
ExpandableListAdapter adapter = expandableListView.getExpandableListAdapter();
int groupCount = adapter.getGroupCount();
for(int i=0; i < groupCount; i++) {
int childCount = adapter.getChildrenCount(i);
View groupView = adapter.getGroupView(i, false, null, expandableListView);
CheckBox cbGroupSelected = (CheckBox) groupView.findViewById(;
for(int j=0; j < childCount; j++) {
View childView = adapter.getChildView(i, j, false, null, expandableListView);
CheckBox cbChildSelected = (CheckBox) childView.findViewById(;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment