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

完整内容,请查看: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 Cursors to an ExpandableListView widget. The top-level Cursor (that is given in the constructor) exposes the groups, while subsequent Cursors 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方法

voidchangeCursor(Cursor cursor)
StringconvertToString(Cursor cursor)
CursorgetChild(int groupPosition, int childPosition)
longgetChildId(int groupPosition, int childPosition)
ViewgetChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent)
intgetChildrenCount(int groupPosition)
CursorgetCursor()
FiltergetFilter()

Returns a filter that can be used to constrain data with a filtering pattern.
返回一个过滤器,该过滤器可以使用过滤模式来约束数据。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值