I\'m looking for an api like isExpanded() or isCollapsed() that tell me if a group is expanded or collapsed.
As @George D wrote there is ExpandableListView .isGroupExpanded(int groupPosition)
method. Well you could add the code to get expanded group position or -1
public int getExpandedGroupPosition() {
for (int i = 0; i < listView.getExpandableListAdapter().getGroupCount(); i++) {
if ( listView.isGroupExpanded(i) ) {
return i;
}
}
return -1;
}