Android7.0中文文档(API)-- ExpandableListAdapter

ExpandableListAdapter详解

完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/ExpandableListAdapter.html

ExpandableListAdapter

public interface ExpandableListAdapter

android.widget.ExpandableListAdapter


An adapter that links a ExpandableListView with the underlying data. The implementation of this interface will provide access to the data of the children (categorized by groups), and also instantiate Views for children and groups.
一个适配器,它将一个ExpandableListView与底层数据连接起来。该接口的实现将提供对子项数据的访问(按组分类),并为子项和组项实例化视图。

摘要


Public方法

abstract booleanareAllItemsEnabled()
abstract ObjectgetChild(int groupPosition, int childPosition)

Gets the data associated with the given child within the given group.
获取与指定组中的指定子游标关联的数据。

abstract longgetChildId(int groupPosition, int childPosition)

Gets the ID for the given child within the given group.
获取与指定组中的指定子游标关联的ID。

abstract ViewgetChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent)

Gets a View that displays the data for the given child within the given group.
获取为指定组中的指定子游标显示数据的视图。

abstract intgetChildrenCount(int groupPosition)

Gets the number of children in a specified group.
返回指定组中子游标的数量。

abstract longgetCombinedChildId(long groupId, long childId)

Gets an ID for a child that is unique across any item (either group or child) that is in this list.
获取这个列表中的任何项(组项或子项)的子游标的一个唯一的ID。

abstract longgetCombinedGroupId(long groupId)

Gets an ID for a group that is unique across any item (either group or child) that is in this list.
获取为这个列表中的任何项(组项或子项)的组游标的一个唯一的ID。

abstract ObjectgetGroup(int groupPosition)

Gets the data associated with the given group.
获取与指定组关联的数据。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值