fun TypedArray.getDrawableOrThrow(@StyleableRes index: Int): Drawable
Retrieve the drawable value for the attribute at index or throws IllegalArgumentException if not defined.
See Also
TypedArray.hasValue
TypedArray.getDrawable