public static interface ExpandableListView.OnGroupClickListener

android.widget.ExpandableListView.OnGroupClickListener



Interface definition for a callback to be invoked when a group in this expandable list has been clicked.

Summary

Public methods

abstract boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id)

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

Public methods

onGroupClick

public abstract boolean onGroupClick (ExpandableListView parent, 
                View v, 
                int groupPosition, 
                long id)

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

Parameters
parent ExpandableListView: The ExpandableListConnector where the click happened
v View: The view within the expandable list/ListView that was clicked
groupPosition int: The group position that was clicked
id long: The row id of the group that was clicked
Returns
boolean True if the click was handled

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.