Added in API level 1

OnGroupCollapseListener


interface OnGroupCollapseListener
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

Public methods
abstract Unit
onGroupCollapse(groupPosition: Int)

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

Public methods

onGroupCollapse

Added in API level 1
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

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Jan 5, 2024

Use the new Lifecycle classes to manage activity and fragment lifecycles.

Updated Dec 11, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Jan 9, 2025