Java android.support.v4.widget CursorAdapter fields, constructors, methods, implement or subclass

Example usage for Java android.support.v4.widget CursorAdapter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.support.v4.widget CursorAdapter.

The text is from its open source code.

Subclass

android.support.v4.widget.CursorAdapter has subclasses.
Click this link to see all its subclasses.

Field

intFLAG_AUTO_REQUERY
If set the adapter will call requery() on the cursor whenever a content change notification is delivered.
intFLAG_REGISTER_CONTENT_OBSERVER
If set the adapter will register a content observer on the cursor and will call #onContentChanged() when a notification comes in.

Constructor

CursorAdapter(Context context, Cursor c, boolean autoRequery)
Constructor that allows control over auto-requery.
CursorAdapter(Context context, Cursor c, int flags)
Recommended constructor.

Method

voidbindView(View view, Context context, Cursor cursor)
Bind an existing view to the data pointed to by cursor
voidchangeCursor(Cursor cursor)
Change the underlying cursor to a new cursor.
intgetCount()
CursorgetCursor()
Returns the cursor.
longgetItemId(int position)
voidnotifyDataSetChanged()
Notifies the attached observers that the underlying data has been changed and any View reflecting the data set should refresh itself.
voidsetFilterQueryProvider(FilterQueryProvider filterQueryProvider)
Sets the query filter provider used to filter the current Cursor.
CursorswapCursor(Cursor newCursor)
Swap in a new Cursor, returning the old Cursor.