SimpleAdapter Constructors

Definition

Overloads

SimpleAdapter(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SimpleAdapter(Context, IList<IDictionary<String,Object>>, Int32, String[], Int32[])

Constructor

SimpleAdapter(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SimpleAdapter (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.SimpleAdapter : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.SimpleAdapter

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

SimpleAdapter(Context, IList<IDictionary<String,Object>>, Int32, String[], Int32[])

Constructor

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;I[Ljava/lang/String;[I)V", "")]
public SimpleAdapter (Android.Content.Context? context, System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string,object>>? data, int resource, string[]? from, int[]? to);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/util/List;I[Ljava/lang/String;[I)V", "")>]
new Android.Widget.SimpleAdapter : Android.Content.Context * System.Collections.Generic.IList<System.Collections.Generic.IDictionary<string, obj>> * int * string[] * int[] -> Android.Widget.SimpleAdapter

Parameters

context
Context

The context where the View associated with this SimpleAdapter is running

data
IList<IDictionary<String,Object>>

A List of Maps. Each entry in the List corresponds to one row in the list. The Maps contain the data for each row, and should include all the entries specified in "from"

resource
Int32

Resource identifier of a view layout that defines the views for this list item. The layout file should include at least those named views defined in "to"

from
String[]

A list of column names that will be added to the Map associated with each item.

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.

Attributes

Remarks

Constructor

Java documentation for android.widget.SimpleAdapter.SimpleAdapter(android.content.Context, java.util.List<? extends java.util.Map<java.lang.String, ?>>, int, 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