@AnyRes fun TypedArray.getResourceIdOrThrow(@StyleableRes index: Int): Int
Retrieves the resource identifier for the attribute at index or throws IllegalArgumentException if not defined.
See Also
TypedArray.hasValue
TypedArray.getResourceId