public abstract class SingleTypeCursorAdapter extends CursorAdapter
| 限定符和类型 | 字段和说明 |
|---|---|
protected Cursor |
cursor
Current cursor being binded to
|
updaterFLAG_AUTO_REQUERY, FLAG_REGISTER_CONTENT_OBSERVER, mAutoRequery, mChangeObserver, mContext, mCursor, mCursorFilter, mDataSetObserver, mDataValid, mFilterQueryProvider, mRowIDColumnIGNORE_ITEM_VIEW_TYPE, NO_SELECTION| 构造器和说明 |
|---|
SingleTypeCursorAdapter(Activity activity,
Cursor cursor,
int flags,
int layoutResourceId)
Create adapter
|
SingleTypeCursorAdapter(Context context,
Cursor cursor,
int flags,
int layoutResourceId)
Create adapter
|
SingleTypeCursorAdapter(Context context,
Cursor cursor,
int flags,
LayoutInflater inflater,
int layoutResourceId)
Create adapter
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
bindView(View view,
Context context,
Cursor cursor) |
protected abstract int[] |
getChildViewIds()
Get child view ids to store
The index of each id in the returned array should be used when using the
helpers to update a specific child view
|
protected View |
initialize(View view)
Initialize view
|
View |
newView(Context context,
Cursor cursor,
ViewGroup parent) |
protected TextView |
setNumber(int childViewIndex,
int columnIndex)
Set text on child view to number at column index
|
protected TextView |
setRelativeTimeSpan(int childViewIndex,
int columnIndex)
Set text on child view to time span from number at column index
|
protected TextView |
setText(int childViewIndex,
int columnIndex)
Set text on child view to string of column index
|
protected abstract void |
update(Cursor cursor)
Update item
|
changeCursor, convertToString, getCount, getCursor, getDropDownView, getFilter, getFilterQueryProvider, getItem, getItemId, getView, hasStableIds, init, newDropDownView, onContentChanged, runQueryOnBackgroundThread, setFilterQueryProvider, swapCursorprotected Cursor cursor
public SingleTypeCursorAdapter(Activity activity, Cursor cursor, int flags, int layoutResourceId)
activity - cursor - flags - layoutResourceId - public SingleTypeCursorAdapter(Context context, Cursor cursor, int flags, int layoutResourceId)
context - cursor - flags - layoutResourceId - public SingleTypeCursorAdapter(Context context, Cursor cursor, int flags, LayoutInflater inflater, int layoutResourceId)
context - cursor - flags - inflater - layoutResourceId - protected abstract int[] getChildViewIds()
protected abstract void update(Cursor cursor)
cursor - public void bindView(View view, Context context, Cursor cursor)
bindView 在类中 CursorAdapterpublic View newView(Context context, Cursor cursor, ViewGroup parent)
newView 在类中 CursorAdapterprotected TextView setText(int childViewIndex, int columnIndex)
childViewIndex - columnIndex - protected TextView setNumber(int childViewIndex, int columnIndex)
childViewIndex - columnIndex - protected TextView setRelativeTimeSpan(int childViewIndex, int columnIndex)
childViewIndex - columnIndex -