android.widget.BaseExpandableListAdapter
android.widget.CursorTreeAdapter
android.widget.ResourceCursorTreeAdapter
直接子类
SimpleCursorTreeAdapter
类概述
一个简单的可扩展的ExpandableListAdapter,通过在XML文件来创建views。你可以指定一个定义了views外观的XML文件。
构造函数
public ResourceCursorTreeAdapter (Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout, int lastChildLayout)
构造函数。
参数
context 和正在运行的SimpleListItemFactory关联的ListView的上下文
cursor 数据库游标
collapsedGroupLayout 定义了收缩组的视图布局文件的资源标识
expandedGroupLayout 定义了展开组的视图布局文件的资源标识
childLayout 定义了除了最后一个的所有子视图的布局文件的资源标识
lastChildLayout 定义了一组中最后一个子视图的布局文件的资源标识
public ResourceCursorTreeAdapter (Context context, Cursor cursor, int collapsedGroupLayout, int expandedGroupLayout, int childLayout)