次の方法で共有


TypedArray.GetTextArray(Int32) Method

Definition

Retrieve the CharSequence[] for the attribute at <var>index</var>.

public string[]? GetTextArray (int index);
member this.GetTextArray : int -> string[]

Parameters

index
Int32

Index of attribute to retrieve.

Returns

String[]

CharSequence[] for the attribute, or null if not defined.

Remarks

Retrieve the CharSequence[] for the attribute at <var>index</var>. This gets the resource ID of the selected attribute, and uses Resources#getTextArray Resources.getTextArray of the owning Resources object to retrieve its String[].

This method will throw an exception if the attribute is defined but is not a text array resource.

Java documentation for android.content.res.TypedArray.getTextArray(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