1、先实例化一个ExpandableListView对象,例如mExpandableListView
2、然后mExpandableListView.setAdapter(exlvAdapter);
3、//遍历所有group,将所有项设置成默认展开
int groupCount = mExpandableListView.getCount();
for (int i=0; i<groupCount; i++) {
mExpandableListView.expandGroup(i);
};