完整内容,请查看: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 View
s for children and groups.
一个适配器,它将一个ExpandableListView
与底层数据连接起来。该接口的实现将提供对子项数据的访问(按组分类),并为子项和组项实例化视图。
摘要
Public方法 | |
---|---|
abstract boolean | areAllItemsEnabled() |
abstract Object | getChild(int groupPosition, int childPosition) Gets the data associated with the given child within the given group. |
abstract long | getChildId(int groupPosition, int childPosition) Gets the ID for the given child within the given group. |
abstract View | getChildView(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 int | getChildrenCount(int groupPosition) Gets the number of children in a specified group. |
abstract long | getCombinedChildId(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. |
abstract long | getCombinedGroupId(long groupId) Gets an ID for a group that is unique across any item (either group or child) that is in this list. |
abstract Object | getGroup(int groupPosition) Gets the data associated with the given group. |