ExpandableListActivity.OnChildClick 方法

定义

在单击子级时重写此项以接收回调。

[Android.Runtime.Register("onChildClick", "(Landroid/widget/ExpandableListView;Landroid/view/View;IIJ)Z", "GetOnChildClick_Landroid_widget_ExpandableListView_Landroid_view_View_IIJHandler")]
public virtual bool OnChildClick(Android.Widget.ExpandableListView? parent, Android.Views.View? v, 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")>]
abstract member OnChildClick : Android.Widget.ExpandableListView * Android.Views.View * int * int * int64 -> bool
override this.OnChildClick : Android.Widget.ExpandableListView * Android.Views.View * int * int * int64 -> bool

参数

parent
ExpandableListView

单击发生的 ExpandableListView

v
View

单击的可展开列表/ListView 中的视图

groupPosition
Int32

包含已单击的子项的组位置

childPosition
Int32

组中的子位置

id
Int64

已单击的子项的行 ID

返回

实现

属性

注解

在单击子级时重写此项以接收回调。

要添加

适用于 . 的 android.app.ExpandableListActivity.onChildClick(android.widget.ExpandableListView, android.view.View, int, int, long)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于