Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/widget/ExpandableListView.OnChildClickListener#pubmethods)

# ExpandableListView.OnChildClickListener

*** ** * ** ***

` public static interface ExpandableListView.OnChildClickListener `   
` `

|---|
| android.widget.ExpandableListView.OnChildClickListener |

Known indirect subclasses [ExpandableListActivity](https://developer.android.com/reference/android/app/ExpandableListActivity) [ExpandableListActivity](https://developer.android.com/reference/android/app/ExpandableListActivity) *This class was deprecated in API level 30. Use `https://developer.android.com/reference/androidx/recyclerview/widget/RecyclerView.html` or use `https://developer.android.com/reference/android/widget/ExpandableListView` directly*   

*** ** * ** ***

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

## Summary

| ### Public methods ||
|---|---|
| ` abstract boolean` | ` https://developer.android.com/reference/android/widget/ExpandableListView.OnChildClickListener#onChildClick(android.widget.ExpandableListView,%20android.view.View,%20int,%20int,%20long)(https://developer.android.com/reference/android/widget/ExpandableListView parent, https://developer.android.com/reference/android/view/View v, int groupPosition, int childPosition, long id) ` Callback method to be invoked when a child in this expandable list has been clicked. |

## Public methods

### onChildClick

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean onChildClick (ExpandableListView parent, 
                View v, 
                int groupPosition, 
                int childPosition, 
                long id)
```

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

<br />

| Parameters ||
|---|---|
| `parent` | `ExpandableListView`: The ExpandableListView where the click happened <br /> |
| `v` | `View`: The view within the expandable list/ListView that was clicked <br /> |
| `groupPosition` | `int`: The group position that contains the child that was clicked <br /> |
| `childPosition` | `int`: The child position within the group <br /> |
| `id` | `long`: The row id of the child that was clicked <br /> |

| Returns ||
|---|---|
| `boolean` | True if the click was handled <br /> |