共用方式為


ArrayAdapter Constructors

Definition

Overloads

ArrayAdapter(Context, Int32)

Constructor

ArrayAdapter(IntPtr, JniHandleOwnership)

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

ArrayAdapter(Context, Int32, Object[])

Constructor.

ArrayAdapter(Context, Int32, IList)

Constructor

ArrayAdapter(Context, Int32, Int32)

Constructor

ArrayAdapter(Context, Int32, Int32, Object[])

Constructor.

ArrayAdapter(Context, Int32, Int32, IList)

Constructor

ArrayAdapter(Context, Int32)

Constructor

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public ArrayAdapter (Android.Content.Context context, int resource);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int -> Android.Widget.ArrayAdapter

Parameters

context
Context

The current context.

resource
Int32

The resource ID for a layout file containing a TextView to use when instantiating views.

Attributes

Remarks

Constructor

Java documentation for android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, 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

ArrayAdapter(IntPtr, JniHandleOwnership)

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

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

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

ArrayAdapter(Context, Int32, Object[])

Constructor.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I[Ljava/lang/Object;)V", "")]
public ArrayAdapter (Android.Content.Context context, int resource, Java.Lang.Object[] objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I[Ljava/lang/Object;)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * Java.Lang.Object[] -> Android.Widget.ArrayAdapter

Parameters

context
Context

The current context.

resource
Int32

The resource ID for a layout file containing a TextView to use when instantiating views.

objects
Object[]

The objects to represent in the ListView.

Attributes

Remarks

Constructor. This constructor will result in the underlying data collection being immutable, so methods such as #clear() will throw an exception.

Java documentation for android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, T[]).

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

ArrayAdapter(Context, Int32, IList)

Constructor

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/util/List;)V", "")]
public ArrayAdapter (Android.Content.Context context, int resource, System.Collections.IList objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/util/List;)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * System.Collections.IList -> Android.Widget.ArrayAdapter

Parameters

context
Context

The current context.

resource
Int32

The resource ID for a layout file containing a TextView to use when instantiating views.

objects
IList

The objects to represent in the ListView.

Attributes

Remarks

Constructor

Java documentation for android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, java.util.List<T>).

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

ArrayAdapter(Context, Int32, Int32)

Constructor

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")]
public ArrayAdapter (Android.Content.Context context, int resource, int textViewResourceId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * int -> Android.Widget.ArrayAdapter

Parameters

context
Context

The current context.

resource
Int32

The resource ID for a layout file containing a layout to use when instantiating views.

textViewResourceId
Int32

The id of the TextView within the layout resource to be populated

Attributes

Remarks

Constructor

Java documentation for android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, 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

ArrayAdapter(Context, Int32, Int32, Object[])

Constructor.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;II[Ljava/lang/Object;)V", "")]
public ArrayAdapter (Android.Content.Context context, int resource, int textViewResourceId, Java.Lang.Object[] objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;II[Ljava/lang/Object;)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * int * Java.Lang.Object[] -> Android.Widget.ArrayAdapter

Parameters

context
Context

The current context.

resource
Int32

The resource ID for a layout file containing a layout to use when instantiating views.

textViewResourceId
Int32

The id of the TextView within the layout resource to be populated

objects
Object[]

The objects to represent in the ListView.

Attributes

Remarks

Constructor. This constructor will result in the underlying data collection being immutable, so methods such as #clear() will throw an exception.

Java documentation for android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, int, T[]).

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

ArrayAdapter(Context, Int32, Int32, IList)

Constructor

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;IILjava/util/List;)V", "")]
public ArrayAdapter (Android.Content.Context context, int resource, int textViewResourceId, System.Collections.IList objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;IILjava/util/List;)V", "")>]
new Android.Widget.ArrayAdapter : Android.Content.Context * int * int * System.Collections.IList -> Android.Widget.ArrayAdapter

Parameters

context
Context

The current context.

resource
Int32

The resource ID for a layout file containing a layout to use when instantiating views.

textViewResourceId
Int32

The id of the TextView within the layout resource to be populated

objects
IList

The objects to represent in the ListView.

Attributes

Remarks

Constructor

Java documentation for android.widget.ArrayAdapter.ArrayAdapter(android.content.Context, int, int, java.util.List<T>).

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