public final boolean collapseGroup ( final int groupIndex ) { ExpandableListAdapter adapter = getExpandableListAdapter ( ) ; if ( adapter != null && isGroupExpanded ( groupIndex ) ) { expandedGroups . remove ( groupIndex ) ; notifyDataSetChanged ( ) ; return true ; } return false ; }
Collapses the group which corresponds to a specific index .