Stay organized with collections
Save and categorize content based on your preferences.
OnGroupCollapseListener
interface OnGroupCollapseListener
Known Direct Subclasses
ExpandableListActivity |
An activity that displays an expandable list of items by binding to a data source implementing the ExpandableListAdapter, and exposes event handlers when the user selects an item.
|
|
Used for being notified when a group is collapsed
Summary
Public methods |
abstract Unit |
Callback method to be invoked when a group in this expandable list has been collapsed.
|
Public methods
onGroupCollapse
abstract fun onGroupCollapse(groupPosition: Int): Unit
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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnGroupCollapseListener\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/widget/ExpandableListView.OnGroupCollapseListener \"View this page in Java\") \n\n```\ninterface OnGroupCollapseListener\n```\n\n|----------------------------------------------------------------|\n| [android.widget.ExpandableListView.OnGroupCollapseListener](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [ExpandableListActivity](../app/ExpandableListActivity.html#) |---------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [ExpandableListActivity](../app/ExpandableListActivity.html#) | An activity that displays an expandable list of items by binding to a data source implementing the ExpandableListAdapter, and exposes event handlers when the user selects an item. | |\n\nUsed for being notified when a group is collapsed\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onGroupCollapse](#onGroupCollapse(kotlin.Int))`(`groupPosition:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` 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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onGroupCollapse(groupPosition: Int): Unit\n```\n\nCallback method to be invoked when a group in this expandable list has been collapsed.\n\n| Parameters ||\n|-----------------|-------------------------------------------------------------------------------------------------------------------|\n| `groupPosition` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The group position that was collapsed |"]]