Udostępnij za pośrednictwem


ExpandableListView.IOnChildClickListener.OnChildClick Method

Definition

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

[Android.Runtime.Register("onChildClick", "(Landroid/widget/ExpandableListView;Landroid/view/View;IIJ)Z", "GetOnChildClick_Landroid_widget_ExpandableListView_Landroid_view_View_IIJHandler:Android.Widget.ExpandableListView/IOnChildClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnChildClick (Android.Widget.ExpandableListView? parent, Android.Views.View? clickedView, int groupPosition, int childPosition, long id);
[<Android.Runtime.Register("onChildClick", "(Landroid/widget/ExpandableListView;Landroid/view/View;IIJ)Z", "GetOnChildClick_Landroid_widget_ExpandableListView_Landroid_view_View_IIJHandler:Android.Widget.ExpandableListView/IOnChildClickListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnChildClick : Android.Widget.ExpandableListView * Android.Views.View * int * int * int64 -> bool

Parameters

parent
ExpandableListView

The ExpandableListView where the click happened

clickedView
View
groupPosition
Int32

The group position that contains the child that was clicked

childPosition
Int32

The child position within the group

id
Int64

The row id of the child that was clicked

Returns

True if the click was handled

Attributes

Remarks

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

Java documentation for android.widget.ExpandableListView.OnChildClickListener.onChildClick(android.widget.ExpandableListView, android.view.View, int, int, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to