Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.

SimpleCursorAdapter

open class SimpleCursorAdapter : ResourceCursorAdapter
kotlin.Any
   ↳ android.widget.BaseAdapter
   ↳ androidx.cursoradapter.widget.CursorAdapter
   ↳ androidx.cursoradapter.widget.ResourceCursorAdapter
   ↳ androidx.cursoradapter.widget.SimpleCursorAdapter

Static library support version of the framework's android.widget.SimpleCursorAdapter. Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview.

Summary

Nested classes
abstract

This class can be used by external clients of SimpleCursorAdapter to define how the Cursor should be converted to a String.

abstract

This class can be used by external clients of SimpleCursorAdapter to bind values fom the Cursor to views.

Inherited constants
Public constructors
<init>(context: Context!, layout: Int, c: Cursor!, from: Array<String!>!, to: IntArray!)

Constructor the enables auto-requery.

<init>(context: Context!, layout: Int, c: Cursor!, from: Array<String!>!, to: IntArray!, flags: Int)

Standard constructor.

Public methods
open Unit
bindView(view: View!, context: Context!, cursor: Cursor!)

Binds all of the field names passed into the "to" parameter of the constructor with their corresponding cursor columns as specified in the "from" parameter.

open Unit

Change the cursor and change the column-to-view mappings at the same time.

open CharSequence!

Returns a CharSequence representation of the specified Cursor as defined by the current CursorToStringConverter.

open SimpleCursorAdapter.CursorToStringConverter!

Returns the converter used to convert the filtering Cursor into a String.

open Int

Return the index of the column used to get a String representation of the Cursor.

open SimpleCursorAdapter.ViewBinder!

Returns the ViewBinder used to bind data to views.

open Unit

Sets the converter used to convert the filtering Cursor into a String.

open Unit
setStringConversionColumn(stringConversionColumn: Int)

Defines the index of the column in the Cursor used to get a String representation of that Cursor.

open Unit

Sets the binder used to bind data to views.

open Unit
setViewImage(v: ImageView!, value: String!)

Called by bindView() to set the image for an ImageView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to an ImageView.

open Unit