I’m using ExpandableListView. i have a around 100 groups in the list, and 10-15 childrens for each group.
now my problem is, whenever i expand a new Group , i want the previously expanded group to be closed. is there a way to do this. Please anyone tell me whether it is possible to do this..
Thank u
You can use the ExpandableListView.OnGroupExpandListener. Maintain the previously expanded groupPosition and use collapseGroup(groupPosition) to close the group.