Is it possible to only expand one child of an ExpandableListView
at a time, thus opening a second child would close the previously opened child?
Just to confirm bos's answer in code:
expandableList.setOnGroupExpandListener(new OnGroupExpandListener() {
int previousGroup = -1;
@Override
public void onGroupExpand(int groupPosition) {
if(groupPosition != previousGroup)
expandableList.collapseGroup(previousGroup);
previousGroup = groupPosition;
}
});