您的位置:首页 > 移动开发 > Android开发

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

2017-06-16 12:17 423 查看

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

BaseExpandableListAdapter

public abstract class BaseExpandableListAdapter


extends
Object
implements
ExpandableListAdapter,
HeterogeneousExpandableList


java.lang.Object
   ↳android.widget.BaseExpandableListAdapter


已知的直接子类

CursorTreeAdapter,

SimpleExpandableListAdapter



已知的间接子类

ResourceCursorTreeAdapter,

SimpleCursorTreeAdapter

Base class for a
ExpandableListAdapter
used to provide data and Views from some data to an expandable list view.

ExpandableListAdapter
的基类,用于提供数据和视图(从某些数据到可扩展的列表视图)。

Adapters inheriting this class should verify that the base implementations of
getCombinedChildId(long, long)
and
getCombinedGroupId(long)
are correct in generating unique IDs from the group/children IDs.

继承这个类的适配器应该验证由
getCombinedChildId(long, long)
getCombinedGroupId(long)
实现的从组/子id生成的惟一id是正确的。

See also:

另请参考:


SimpleExpandableListAdapter

SimpleCursorTreeAdapter


摘要

Public构造方法

BaseExpandableListAdapter()

Public方法

boolean
areAllItemsEnabled()
int
getChildType(int groupPosition, int childPosition)

Get the type of child View that will be created by
getChildView(int,
int, boolean, View, ViewGroup)
for the specified child item.

获取子视图的类型,将通过
getChildView(int, int, boolean, View, ViewGroup)
,为指定的子项创建子视图。

int
getChildTypeCount()

Returns the number of types of child Views that will be created by
getChildView(int,
int, boolean, View, ViewGroup)
.

返回子视图类型的数量,将通过
getChildView(int, int, boolean, View, ViewGroup)
,来创建子视图。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息