ExpandableListView 保证只展开一组
expandableListView.setOnGroupExpandListener(new OnGroupExpandListener(){ @Override public void onGroupExpand(int groupPosition) { //保证每次只展开一组 int count=expandableListView.getExpandableListAdapter().getGroupCount(); for(int i=0;i<count; i++){ if(groupPosition != i){ expandableListView.collapseGroup(i); } } } });