Stay organized with collections
Save and categorize content based on your preferences.
OnGroupExpandListener
interface OnGroupExpandListener
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 expanded
Summary
Public methods |
abstract Unit |
Callback method to be invoked when a group in this expandable list has been expanded.
|
Public methods
onGroupExpand
abstract fun onGroupExpand(groupPosition: Int): Unit
Callback method to be invoked when a group in this expandable list has been expanded.
Parameters |
groupPosition |
Int: The group position that was expanded |
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ExpandableListView.OnGroupExpandListener\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnGroupExpandListener\n=====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/widget/ExpandableListView.OnGroupExpandListener \"View this page in Java\") \n\n```\ninterface OnGroupExpandListener\n```\n\n|--------------------------------------------------------------|\n| [android.widget.ExpandableListView.OnGroupExpandListener](#) |\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 expanded\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onGroupExpand](#onGroupExpand(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 expanded. |\n\nPublic methods\n--------------\n\n### onGroupExpand\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onGroupExpand(groupPosition: Int): Unit\n```\n\nCallback method to be invoked when a group in this expandable list has been expanded.\n\n| Parameters ||\n|-----------------|------------------------------------------------------------------------------------------------------------------|\n| `groupPosition` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): The group position that was expanded |"]]