完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/CursorTreeAdapter.html
CursorTreeAdapter
public abstract class CursorTreeAdapter
extends BaseExpandableListAdapter
implements Filterable
java.lang.Object | ||
↳ | android.widget.BaseExpandableListAdapter | |
↳ | android.widget.CursorTreeAdapter |
An adapter that exposes data from a series of Cursor
s to an ExpandableListView
widget. The top-level Cursor
(that is given in the constructor) exposes the groups, while subsequent Cursor
s returned from getChildrenCursor(Cursor)
expose children within a particular group. The Cursors must include a column named "_id" or this class will not work.
从一组Cursor
导出数据到ExpandableListView
控件的适配器。顶级Cursor
(在构造方法中指定)将导出这个组,而将从getChildrenCursor(Cursor)
返回的Cursor
导出指定组的子项。Cursor必须包含一个名为“_id”的列,否则这个类将无法工作。
摘要
Public构造方法 | |
---|---|
CursorTreeAdapter(Cursor cursor, Context context) Constructor. | |
CursorTreeAdapter(Cursor cursor, Context context, boolean autoRequery) Constructor. |
Public方法 | |
---|---|
void | changeCursor(Cursor cursor) |
String | convertToString(Cursor cursor) |
Cursor | getChild(int groupPosition, int childPosition) |
long | getChildId(int groupPosition, int childPosition) |
View | getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) |
int | getChildrenCount(int groupPosition) |
Cursor | getCursor() |
Filter | getFilter() Returns a filter that can be used to constrain data with a filtering pattern. |