fun TypedArray.getIntOrThrow(@StyleableRes index: Int): Int
Retrieve the integer value for the attribute at index or throws IllegalArgumentException if not defined.
See Also
TypedArray.hasValue
TypedArray.getInt