VH - public abstract class CursorRecyclerAdapter<VH extends RecyclerView.ViewHolder>
extends <any>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CursorRecyclerAdapter.NewItemsListener |
| Modifier and Type | Field and Description |
|---|---|
protected android.database.Cursor |
mCursor |
| Constructor and Description |
|---|
CursorRecyclerAdapter(android.database.Cursor c) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeGfycats(android.database.Cursor cursor)
Change the underlying cursor to a new cursor.
|
java.lang.CharSequence |
convertToString(android.database.Cursor cursor)
Converts the cursor into a CharSequence.
|
android.database.Cursor |
getCursor() |
int |
getItemCount() |
long |
getItemId(int position) |
abstract void |
onBindViewHolder(VH holder,
android.database.Cursor cursor) |
void |
onBindViewHolder(VH holder,
int position) |
void |
setItemsListener(CursorRecyclerAdapter.NewItemsListener itemsListener) |
public void setItemsListener(CursorRecyclerAdapter.NewItemsListener itemsListener)
public final void onBindViewHolder(VH holder, int position)
public abstract void onBindViewHolder(VH holder, android.database.Cursor cursor)
public android.database.Cursor getCursor()
public int getItemCount()
public long getItemId(int position)
public void changeGfycats(android.database.Cursor cursor)
cursor - The new cursor to be usedpublic java.lang.CharSequence convertToString(android.database.Cursor cursor)
Converts the cursor into a CharSequence. Subclasses should override this method to convert their results. The default implementation returns an empty String for null values or the default String representation of the value.
cursor - the cursor to convert to a CharSequence