fun TypedArray.getColorStateListOrThrow(@StyleableRes index: Int): ColorStateList
Retrieve the color state list value for the attribute at index or throws IllegalArgumentException if not defined.
See Also
TypedArray.hasValue
TypedArray.getColorStateList