CursorAdapter

Class of android.widget · CursorAdapter.java · Android's reference

public abstract class CursorAdapter extends BaseAdapter implements Filterable

CursorAdapter ← BaseAdapter

An adapter over the rows of a cursor, which must have an _id column.

Extended in the framework by

Fields

public static final int FLAG_AUTO_REQUERY = 0x01 deprecated source
public static final int FLAG_REGISTER_CONTENT_OBSERVER = 0x02 source
protected boolean mDataValid source
protected boolean mAutoRequery source
protected Cursor mCursor source
protected Context mContext source
protected int mRowIDColumn source

Constructors

public CursorAdapter(Context context, Cursor c) deprecated source
public CursorAdapter(Context context, Cursor c, boolean autoRequery) source
public CursorAdapter(Context context, Cursor c, int flags) source

Methods

protected void init(Context context, Cursor c, boolean autoRequery) deprecated source
public Cursor getCursor() source
public int getCount() source
public Object getItem(int position) source
public long getItemId(int position) source
public boolean hasStableIds() source
public View getView(int position, View convertView, ViewGroup parent) source
public View getDropDownView(int position, View convertView, ViewGroup parent) source
public abstract View newView(Context context, Cursor cursor, ViewGroup parent) source
public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) source
public abstract void bindView(View view, Context context, Cursor cursor) source
public void changeCursor(Cursor cursor) source
public Cursor swapCursor(Cursor newCursor) source
public CharSequence convertToString(Cursor cursor) source
public Cursor runQueryOnBackgroundThread(CharSequence constraint) source
public Filter getFilter() source
public FilterQueryProvider getFilterQueryProvider() source
public void setFilterQueryProvider(FilterQueryProvider filterQueryProvider) source
protected void onContentChanged() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.