android.widget
Class SimpleCursorAdapter
java.lang.Object
android.widget.BaseAdapter
android.widget.CursorAdapter
android.widget.ResourceCursorAdapter
android.widget.SimpleCursorAdapter
- All Implemented Interfaces:
- Adapter, Filterable, ListAdapter, SpinnerAdapter
public class SimpleCursorAdapter
- extends ResourceCursorAdapter
|
Method Summary |
void |
bindView(View view,
Context context,
Cursor cursor)
|
void |
changeCursor(Cursor c)
|
void |
changeCursorAndColumns(Cursor c,
java.lang.String[] from,
int[] to)
|
java.lang.CharSequence |
convertToString(Cursor cursor)
|
SimpleCursorAdapter.CursorToStringConverter |
getCursorToStringConverter()
|
int |
getStringConversionColumn()
|
SimpleCursorAdapter.ViewBinder |
getViewBinder()
|
View |
newDropDownView(Context context,
Cursor cursor,
ViewGroup parent)
|
View |
newView(Context context,
Cursor cursor,
ViewGroup parent)
|
void |
setCursorToStringConverter(SimpleCursorAdapter.CursorToStringConverter cursorToStringConverter)
|
void |
setStringConversionColumn(int stringConversionColumn)
|
void |
setViewBinder(SimpleCursorAdapter.ViewBinder viewBinder)
|
void |
setViewImage(ImageView v,
java.lang.String value)
|
void |
setViewText(TextView v,
java.lang.String text)
|
| Methods inherited from class android.widget.CursorAdapter |
getCount, getCursor, getDropDownView, getFilter, getFilterQueryProvider, getItem, getItemId, getView, hasStableIds, init, onContentChanged, runQueryOnBackgroundThread, setFilterQueryProvider |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCursorAdapter
public SimpleCursorAdapter(Context context,
int layout,
Cursor c,
java.lang.String[] from,
int[] to)
newView
public View newView(Context context,
Cursor cursor,
ViewGroup parent)
- Overrides:
newView in class ResourceCursorAdapter
newDropDownView
public View newDropDownView(Context context,
Cursor cursor,
ViewGroup parent)
- Overrides:
newDropDownView in class ResourceCursorAdapter
bindView
public void bindView(View view,
Context context,
Cursor cursor)
- Specified by:
bindView in class CursorAdapter
getViewBinder
public SimpleCursorAdapter.ViewBinder getViewBinder()
setViewBinder
public void setViewBinder(SimpleCursorAdapter.ViewBinder viewBinder)
setViewImage
public void setViewImage(ImageView v,
java.lang.String value)
setViewText
public void setViewText(TextView v,
java.lang.String text)
getStringConversionColumn
public int getStringConversionColumn()
setStringConversionColumn
public void setStringConversionColumn(int stringConversionColumn)
getCursorToStringConverter
public SimpleCursorAdapter.CursorToStringConverter getCursorToStringConverter()
setCursorToStringConverter
public void setCursorToStringConverter(SimpleCursorAdapter.CursorToStringConverter cursorToStringConverter)
convertToString
public java.lang.CharSequence convertToString(Cursor cursor)
- Overrides:
convertToString in class CursorAdapter
changeCursor
public void changeCursor(Cursor c)
- Overrides:
changeCursor in class CursorAdapter
changeCursorAndColumns
public void changeCursorAndColumns(Cursor c,
java.lang.String[] from,
int[] to)
Copyright © 2008-2010. All Rights Reserved.