TypedArray.GetTextArray(Int32) Method
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.
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
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.