resolveOrThrow

open fun resolveOrThrow(@NonNull context: Context, @AttrRes attributeResId: Int, @NonNull errorMessageComponent: String): Int

Returns the TypedValue for the provided attributeResId.

Throws

if the attribute is not present in the current theme.


open fun resolveOrThrow(@NonNull componentView: View, @AttrRes attributeResId: Int): Int

Returns the TypedValue for the provided attributeResId, using the context of the provided componentView.

Throws

if the attribute is not present in the current theme.