Android.Widget.SimpleCursorAdapter.BindView Method
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.

Syntax

[Android.Runtime.Register("bindView", "(Landroid/view/View;Landroid/content/Context;Landroid/database/Cursor;)V", "GetBindView_Landroid_view_View_Landroid_content_Context_Landroid_database_Cursor_Handler")]
public override void BindView (Android.Views.View view, Android.Content.Context context, Android.Database.ICursor cursor)

See Also

CursorAdapter.BindView(Android.Views.View, Android.Content.Context, Android.Content.Context)
SimpleCursorAdapter.ViewBinder
SimpleCursorAdapter.ViewBinder
SimpleCursorAdapter.SetViewImage(ImageView, System.String)
SimpleCursorAdapter.SetViewText(TextView, System.String)

Parameters

view
Existing view, returned earlier by newView
context
Interface to application's global information
cursor
The cursor from which to get the data. The cursor is already moved to the correct position.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif binding cannot occur

Remarks

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. Binding occurs in two phases. First, if a NoType:android/widget/SimpleCursorAdapter$ViewBinder;Href=../../../reference/android/widget/SimpleCursorAdapter.ViewBinder.html is available, NoType:android/widget/SimpleCursorAdapter$ViewBinder;Href=../../../reference/android/widget/SimpleCursorAdapter.ViewBinder.html#setViewValue(android.view.View, android.database.Cursor, int) is invoked. If the returned value is true, binding has occured. If the returned value is false and the view to bind is a TextView, SimpleCursorAdapter.SetViewText(TextView, System.String) is invoked. If the returned value is false and the view to bind is an ImageView, SimpleCursorAdapter.SetViewImage(ImageView, System.String) is invoked. If no appropriate binding can be found, an Java.Lang.IllegalStateException is thrown.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1