fun TypedArray.getTextOrThrow(@StyleableRes index: Int): CharSequence
Retrieve the text value for the attribute at index or throws IllegalArgumentException if not defined.
See Also
TypedArray.hasValue
TypedArray.getText