I want to make only one item in the parent list expand at a time, my code for the onCreate is currently the following. (It works as I want, But the method to allow only one pare
@Override
public void onGroupExpanded(int groupPosition) {
super.onGroupExpanded(groupPosition);
int len = getGroupCount();
for (int i = 0; i < len; i++) {
if (i != groupPosition) {
expListView.collapseGroup(i);
}
}
}