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