Stay organized with collections
Save and categorize content based on your preferences.
ExpandableListView.OnGroupCollapseListener
public
static
interface
ExpandableListView.OnGroupCollapseListener
android.widget.ExpandableListView.OnGroupCollapseListener
|
Known indirect subclasses
|
Used for being notified when a group is collapsed
Summary
Public methods |
abstract
void
|
onGroupCollapse(int groupPosition)
Callback method to be invoked when a group in this expandable list has
been collapsed.
|
Public methods
onGroupCollapse
public abstract void onGroupCollapse (int groupPosition)
Callback method to be invoked when a group in this expandable list has
been collapsed.
Parameters |
groupPosition |
int : The group position that was collapsed |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ExpandableListView.OnGroupCollapseListener\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nExpandableListView.OnGroupCollapseListener\n==========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/widget/ExpandableListView.OnGroupCollapseListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nExpandableListView.OnGroupCollapseListener\n`\n\n\n`\n\n\n`\n\n|-----------------------------------------------------------|\n| android.widget.ExpandableListView.OnGroupCollapseListener |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [ExpandableListActivity](/reference/android/app/ExpandableListActivity) |-------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ExpandableListActivity](/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](/reference/android/widget/ExpandableListView) directly* | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nUsed for being notified when a group is collapsed\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onGroupCollapse](/reference/android/widget/ExpandableListView.OnGroupCollapseListener#onGroupCollapse(int))`(int groupPosition) ` Callback method to be invoked when a group in this expandable list has been collapsed. |\n\nPublic methods\n--------------\n\n### onGroupCollapse\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onGroupCollapse (int groupPosition)\n```\n\nCallback method to be invoked when a group in this expandable list has\nbeen collapsed.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------------|-----------------------------------------------------|\n| `groupPosition` | `int`: The group position that was collapsed \u003cbr /\u003e |"]]