Condividi tramite


SimpleCursorAdapter.ChangeCursorAndColumns(ICursor, String[], Int32[]) Method

Definition

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

[Android.Runtime.Register("changeCursorAndColumns", "(Landroid/database/Cursor;[Ljava/lang/String;[I)V", "GetChangeCursorAndColumns_Landroid_database_Cursor_arrayLjava_lang_String_arrayIHandler")]
public virtual void ChangeCursorAndColumns (Android.Database.ICursor? c, string[]? from, int[]? to);
[<Android.Runtime.Register("changeCursorAndColumns", "(Landroid/database/Cursor;[Ljava/lang/String;[I)V", "GetChangeCursorAndColumns_Landroid_database_Cursor_arrayLjava_lang_String_arrayIHandler")>]
abstract member ChangeCursorAndColumns : Android.Database.ICursor * string[] * int[] -> unit
override this.ChangeCursorAndColumns : Android.Database.ICursor * string[] * int[] -> unit

Parameters

c
ICursor

The database cursor. Can be null if the cursor is not available yet.

from
String[]

A list of column names representing the data to bind to the UI. Can be null if the cursor is not available yet.

to
Int32[]

The views that should display column in the "from" parameter. These should all be TextViews. The first N views in this list are given the values of the first N columns in the from parameter. Can be null if the cursor is not available yet.

Attributes

Remarks

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

Java documentation for android.widget.SimpleCursorAdapter.changeCursorAndColumns(android.database.Cursor, java.lang.String[], 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