Stay organized with collections
Save and categorize content based on your preferences.
ExpandableListView.OnGroupExpandListener
public
static
interface
ExpandableListView.OnGroupExpandListener
android.widget.ExpandableListView.OnGroupExpandListener
|
Known indirect subclasses
|
Used for being notified when a group is expanded
Summary
Public methods |
abstract
void
|
onGroupExpand(int groupPosition)
Callback method to be invoked when a group in this expandable list has
been expanded.
|
Public methods
onGroupExpand
public abstract void onGroupExpand (int groupPosition)
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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nExpandableListView.OnGroupExpandListener\n========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/widget/ExpandableListView.OnGroupExpandListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nExpandableListView.OnGroupExpandListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------|\n| android.widget.ExpandableListView.OnGroupExpandListener |\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 expanded\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onGroupExpand](/reference/android/widget/ExpandableListView.OnGroupExpandListener#onGroupExpand(int))`(int groupPosition) ` 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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onGroupExpand (int groupPosition)\n```\n\nCallback method to be invoked when a group in this expandable list has\nbeen expanded.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------------|----------------------------------------------------|\n| `groupPosition` | `int`: The group position that was expanded \u003cbr /\u003e |"]]