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;         }     }); If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With