ITEEDU


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