Example usage for Java android.support.v4.widget CursorAdapter fields, constructors, methods, implement or subclass
The text is from its open source code.
int | FLAG_AUTO_REQUERY If set the adapter will call requery() on the cursor whenever a content change notification is delivered. |
int | FLAG_REGISTER_CONTENT_OBSERVER If set the adapter will register a content observer on the cursor and will call #onContentChanged() when a notification comes in. |
CursorAdapter(Context context, Cursor c, boolean autoRequery) Constructor that allows control over auto-requery. | |
CursorAdapter(Context context, Cursor c, int flags) Recommended constructor. |
void | bindView(View view, Context context, Cursor cursor) Bind an existing view to the data pointed to by cursor |
void | changeCursor(Cursor cursor) Change the underlying cursor to a new cursor. |
int | getCount() |
Cursor | getCursor() Returns the cursor. |
long | getItemId(int position) |
void | notifyDataSetChanged() Notifies the attached observers that the underlying data has been changed and any View reflecting the data set should refresh itself. |
void | setFilterQueryProvider(FilterQueryProvider filterQueryProvider) Sets the query filter provider used to filter the current Cursor. |
Cursor | swapCursor(Cursor newCursor) Swap in a new Cursor, returning the old Cursor. |