Sdílet prostřednictvím


SimpleCursorAdapter.IViewBinder.SetViewValue(View, ICursor, Int32) Method

Definition

Binds the Cursor column defined by the specified index to the specified view.

[Android.Runtime.Register("setViewValue", "(Landroid/view/View;Landroid/database/Cursor;I)Z", "GetSetViewValue_Landroid_view_View_Landroid_database_Cursor_IHandler:Android.Widget.SimpleCursorAdapter/IViewBinderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool SetViewValue (Android.Views.View? view, Android.Database.ICursor? cursor, int columnIndex);
[<Android.Runtime.Register("setViewValue", "(Landroid/view/View;Landroid/database/Cursor;I)Z", "GetSetViewValue_Landroid_view_View_Landroid_database_Cursor_IHandler:Android.Widget.SimpleCursorAdapter/IViewBinderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetViewValue : Android.Views.View * Android.Database.ICursor * int -> bool

Parameters

view
View

the view to bind the data to

cursor
ICursor

the cursor to get the data from

columnIndex
Int32

the column at which the data can be found in the cursor

Returns

true if the data was bound to the view, false otherwise

Attributes

Remarks

Binds the Cursor column defined by the specified index to the specified view.

When binding is handled by this ViewBinder, this method must return true. If this method returns false, SimpleCursorAdapter will attempts to handle the binding on its own.

Java documentation for android.widget.SimpleCursorAdapter.ViewBinder.setViewValue(android.view.View, android.database.Cursor, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to