次の方法で共有


ArrayAdapter.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 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

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

An ArrayAdapter<CharSequence>.

Attributes

Remarks

Creates a new ArrayAdapter from external resources. The content of the array is obtained through android.content.res.Resources#getTextArray(int).

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