fun TypedArray.getDimensionOrThrow(@StyleableRes index: Int): Float
Retrieve the dimension value for the attribute at index or throws IllegalArgumentException if not defined.
See Also
TypedArray.hasValue
TypedArray.getDimension