TypedArray.GetTextArrayFormatted(Int32) Method

Definition

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

[Android.Runtime.Register("getTextArray", "(I)[Ljava/lang/CharSequence;", "GetGetTextArray_IHandler")]
public virtual Java.Lang.ICharSequence[]? GetTextArrayFormatted (int index);
[<Android.Runtime.Register("getTextArray", "(I)[Ljava/lang/CharSequence;", "GetGetTextArray_IHandler")>]
abstract member GetTextArrayFormatted : int -> Java.Lang.ICharSequence[]
override this.GetTextArrayFormatted : int -> Java.Lang.ICharSequence[]

Parameters

index
Int32

Index of attribute to retrieve.

Returns

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

Attributes

Exceptions

if the TypedArray has already been recycled.

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