Android Guides | Samples

Android.Widget.CursorTreeAdapter Class

An adapter that exposes data from a series of ICursors to an ExpandableListView widget.

See Also: CursorTreeAdapter

Syntax

[Android.Runtime.Register("android/widget/CursorTreeAdapter", DoNotGenerateAcw=true)]
public abstract class CursorTreeAdapter : BaseExpandableListAdapter, IFilterable, IDisposable

Remarks

An adapter that exposes data from a series of ICursors to an ExpandableListView widget. The top-level ICursor (that is given in the constructor) exposes the groups, while subsequent ICursors returned from CursorTreeAdapter.GetChildrenCursor(ICursor) expose children within a particular group. The Cursors must include a column named "_id" or this class will not work.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Widget.CursorTreeAdapter are listed below.

See Also: BaseExpandableListAdapter

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
CursorICursor.
[read-only]
FilterFilter.
FilterQueryProviderIFilterQueryProvider.
[read-only]
override
GroupCountInt32.
[read-only]
override
HasStableIdsBoolean.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

ChangeCursor(ICursor)
ConvertToString(ICursor) : String
override
GetChild(Int32, Int32) : Object
override
GetChildId(Int32, Int32) : Int64
override
GetChildrenCount(Int32) : Int32
override
GetChildView(Int32, Int32, Boolean, View, ViewGroup) : View
override
GetGroup(Int32) : Object
override
GetGroupId(Int32) : Int64
override
GetGroupView(Int32, Boolean, View, ViewGroup) : View
override
IsChildSelectable(Int32, Int32) : Boolean
abstract
NewChildView(Context, ICursor, Boolean, ViewGroup) : View
Makes a new child view to hold the data pointed to by cursor.
abstract
NewGroupView(Context, ICursor, Boolean, ViewGroup) : View
Makes a new group view to hold the group data pointed to by cursor.
NotifyDataSetChanged(Boolean)
Notifies a data set change, but with the option of not releasing any cached cursors.
RunQueryOnBackgroundThread(ICharSequence) : ICursor
RunQueryOnBackgroundThread(String) : ICursor
SetChildrenCursor(Int32, ICursor)
Sets the children Cursor for a particular group.
SetGroupCursor(ICursor)
Sets the group Cursor.

Protected Methods

abstract
BindChildView(View, Context, ICursor, Boolean)
Bind an existing view to the child data pointed to by cursor
abstract
BindGroupView(View, Context, ICursor, Boolean)
Bind an existing view to the group data pointed to by cursor.
abstract
GetChildrenCursor(ICursor) : ICursor
Gets the Cursor for the children at the given group.