返回介绍

ExpandableListView.OnChildClickListener

发布于 2025-03-09 17:00:28 字数 1058 浏览 0 评论 0 收藏 0

ExpandableListView.OnChildClickListener

版本:Android 3.0 r1

结构

继承关系

public static interface ExpandableListView.OnChildClickListener

java.lang.Object

android.widget.ExpandableListView.OnChildClickListener

子类及间接子类

间接子类

ExpandableListActivity

类概述

这是一个定义了当可折叠列表(expandable list) 里的子元素(child) 发生点击事件时调用的回调方法的接口。

公共方法

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

用当可折叠列表里的子元素(child) 被点击的时候被调用的回调方法。

参数

parent 发生点击动作的 ExpandableListView

v 在 expandable list/ListView 中被点击的视图(View)

groupPosition 包含被点击子元素的组(group) 在 ExpandableListView 中的位置(索引)

childPosition 被点击子元素(child) 在组(group) 中的位置

id 被点击子元素(child) 的行 ID(索引)

返回值

当点击事件被处理时返回 true

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文