# ExpandableListView.OnGroupCollapseListener

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Methods](https://developer.android.com/reference/android/widget/ExpandableListView.OnGroupCollapseListener#pubmethods)  

# ExpandableListView.OnGroupCollapseListener

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/widget/ExpandableListView.OnGroupCollapseListener "View this page in Kotlin")\|Java

`
public
static


interface
ExpandableListView.OnGroupCollapseListener
`  
`


`

|-----------------------------------------------------------|
| android.widget.ExpandableListView.OnGroupCollapseListener |

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known indirect subclasses [ExpandableListActivity](https://developer.android.com/reference/android/app/ExpandableListActivity) |------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ExpandableListActivity](https://developer.android.com/reference/android/app/ExpandableListActivity) | *This class was deprecated in API level 30. Use[RecyclerView](https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.html)or use[ExpandableListView](https://developer.android.com/reference/android/widget/ExpandableListView)directly* | |

<br />

*** ** * ** ***

Used for being notified when a group is collapsed

## Summary

|                                                                                                                             ### Public methods                                                                                                                              ||
|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onGroupCollapse](https://developer.android.com/reference/android/widget/ExpandableListView.OnGroupCollapseListener#onGroupCollapse(int))`(int groupPosition) ` Callback method to be invoked when a group in this expandable list has been collapsed. |

## Public methods

### onGroupCollapse

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public abstract void onGroupCollapse (int groupPosition)
```

Callback method to be invoked when a group in this expandable list has been collapsed.

<br />

|                              Parameters                              ||
|-----------------|-----------------------------------------------------|
| `groupPosition` | `int`: The group position that was collapsed <br /> |