Partager via


ArrayAdapter<T>.CreateFromResource(Context, Int32, Int32) Method

Definition

Creates a new ArrayAdapter from external resources.

[Android.Runtime.Register("createFromResource", "(Landroid/content/Context;II)Landroid/widget/ArrayAdapter;", "")]
public static Android.Widget.ArrayAdapter<Java.Lang.ICharSequence> CreateFromResource (Android.Content.Context context, int textArrayResId, int textViewResId);
[<Android.Runtime.Register("createFromResource", "(Landroid/content/Context;II)Landroid/widget/ArrayAdapter;", "")>]
static member CreateFromResource : Android.Content.Context * int * int -> Android.Widget.ArrayAdapter<Java.Lang.ICharSequence>

Parameters

context
Context

The application's environment.

textArrayResId
Int32

The identifier of the array to use as the data source.

textViewResId
Int32

The identifier of the layout used to create views.

Returns

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.

Applies to