@Dimension fun TypedArray.getDimensionPixelSizeOrThrow(@StyleableRes index: Int): Int
Retrieve the dimension pixel size value for the attribute at index or throws IllegalArgumentException if not defined.
See Also
TypedArray.hasValue
TypedArray.getDimensionPixelSize