Skip to content

Instantly share code, notes, and snippets.

@XinyueZ
Created August 8, 2014 11:13
Show Gist options
  • Select an option

  • Save XinyueZ/fd30f58446b7ed2937ba to your computer and use it in GitHub Desktop.

Select an option

Save XinyueZ/fd30f58446b7ed2937ba to your computer and use it in GitHub Desktop.
Open Group directly for ExpandableListView
@Override
public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {
View v = super.getGroupView(groupPosition, isExpanded, convertView, parent);
ExpandableListView mExpandableListView = (ExpandableListView) parent;
mExpandableListView.expandGroup(groupPosition);
return v;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment