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

来源:互联网 发布:逸晗网络 编辑:程序博客网 时间:2024/05/29 19:39

完整内容,请查看: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.
获取与指定组关联的数据。