ArrayAdapter<T> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ArrayAdapter<T>(Context, Int32) |
Constructor |
| ArrayAdapter<T>(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
| ArrayAdapter<T>(Context, Int32, IList<T>) |
Constructor |
| ArrayAdapter<T>(Context, Int32, Int32) |
Constructor |
| ArrayAdapter<T>(Context, Int32, T[]) |
Creates an adapter backed by the supplied array. |
| ArrayAdapter<T>(Context, Int32, Int32, IList<T>) |
Creates an adapter backed by the supplied list and item layout. |
| ArrayAdapter<T>(Context, Int32, Int32, T[]) |
Creates an adapter backed by the supplied array and item layout. |
ArrayAdapter<T>(Context, Int32)
Constructor
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public ArrayAdapter(Android.Content.Context context, int textViewResourceId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int -> Android.Widget.ArrayAdapter<'T>
Parameters
- context
- Context
Context : The current context.
- textViewResourceId
- Int32
The text view resource id value.
- Attributes
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.
Java documentation for ArrayAdapter.
Applies to
ArrayAdapter<T>(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
public ArrayAdapter(IntPtr handle, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.ArrayAdapter<'T> : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.ArrayAdapter<'T>
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle handle
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<T>(Context, Int32, IList<T>)
Constructor
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/util/List;)V", "")]
public ArrayAdapter(Android.Content.Context context, int textViewResourceId, System.Collections.Generic.IList<T> objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/util/List;)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int * System.Collections.Generic.IList<'T> -> Android.Widget.ArrayAdapter<'T>
Parameters
- context
- Context
Context : The current context.
- textViewResourceId
- Int32
int : The id of the TextView within the layout resource to be populated
- objects
- IList<T>
List : The objects to represent in the ListView. This value cannot be null .
- Attributes
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.
Java documentation for ArrayAdapter.
Applies to
ArrayAdapter<T>(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<'T> : Android.Content.Context * int * int -> Android.Widget.ArrayAdapter<'T>
Parameters
- context
- Context
Context : The current context.
- resource
- Int32
int : The resource ID for a layout file containing a layout to use when instantiating views.
- textViewResourceId
- Int32
int : The id of the TextView within the layout resource to be populated
- Attributes
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.
Java documentation for ArrayAdapter.
Applies to
ArrayAdapter<T>(Context, Int32, T[])
Creates an adapter backed by the supplied array.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I[Ljava/lang/Object;)V", "")]
public ArrayAdapter(Android.Content.Context context, int textViewResourceId, T[] objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I[Ljava/lang/Object;)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int * 'T[] -> Android.Widget.ArrayAdapter<'T>
Parameters
- context
- Context
Context : The current context.
- textViewResourceId
- Int32
int : The id of the TextView within the layout resource to be populated
- objects
- T[]
The objects represented by this adapter.
- Attributes
Remarks
The array is used as a fixed-size backing collection; operations that add or remove adapter items are not supported.
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.
Java documentation for ArrayAdapter.
Applies to
ArrayAdapter<T>(Context, Int32, Int32, IList<T>)
Creates an adapter backed by the supplied list and item layout.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;IILjava/util/List;)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource, int textViewResourceId, System.Collections.Generic.IList<T> objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;IILjava/util/List;)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int * int * System.Collections.Generic.IList<'T> -> Android.Widget.ArrayAdapter<'T>
Parameters
- context
- Context
Context : The current context.
- resource
- Int32
int : The resource ID for a layout file containing a layout to use when instantiating views.
- textViewResourceId
- Int32
int : The id of the TextView within the layout resource to be populated
- objects
- IList<T>
The objects represented by this adapter.
- Attributes
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.
Java documentation for ArrayAdapter.
Applies to
ArrayAdapter<T>(Context, Int32, Int32, T[])
Creates an adapter backed by the supplied array and item layout.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;II[Ljava/lang/Object;)V", "")]
public ArrayAdapter(Android.Content.Context context, int resource, int textViewResourceId, T[] objects);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;II[Ljava/lang/Object;)V", "")>]
new Android.Widget.ArrayAdapter<'T> : Android.Content.Context * int * int * 'T[] -> Android.Widget.ArrayAdapter<'T>
Parameters
- context
- Context
Context : The current context.
- resource
- Int32
int : The resource ID for a layout file containing a layout to use when instantiating views.
- textViewResourceId
- Int32
int : The id of the TextView within the layout resource to be populated
- objects
- T[]
The objects represented by this adapter.
- Attributes
Remarks
The array is used as a fixed-size backing collection; operations that add or remove adapter items are not supported.
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.
Java documentation for ArrayAdapter.