?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
ExpandableListView.OnChildClickListener
版本:Android 3.0 r1
?
結(jié)構(gòu)
繼承關(guān)系
public static interface ExpandableListView.OnChildClickListener
?
java.lang.Object
android.widget.ExpandableListView.OnChildClickListener
?
子類及間接子類
間接子類
ExpandableListActivity
?
類概述
這是一個(gè)定義了當(dāng)可折疊列表(expandable list)里的子元素(child)發(fā)生點(diǎn)擊事件時(shí)調(diào)用的回調(diào)方法的接口。
?
公共方法
public abstract boolean onChildClick (ExpandableListView parent, View v, int groupPosition, int childPosition, long id)
???????? 用當(dāng)可折疊列表里的子元素(child)被點(diǎn)擊的時(shí)候被調(diào)用的回調(diào)方法。
參數(shù)
??????????????????????????? parent? ?????????? ????????發(fā)生點(diǎn)擊動(dòng)作的ExpandableListView
??????????????????????????? v? ?? ????????????????在expandable list/ListView中被點(diǎn)擊的視圖(View)
??????????????????????????? groupPosition ????????????????? 包含被點(diǎn)擊子元素的組(group)在ExpandableListView中的位置(索引)
??????????????????????????? childPosition? ????????????????? 被點(diǎn)擊子元素(child)在組(group)中的位置
??????????????????????????? id? ????????????????被點(diǎn)擊子元素(child)的行ID(索引)
?????????????????? 返回值
??????????????????????????? 當(dāng)點(diǎn)擊事件被處理時(shí)返回true