resolveBoolean

open fun resolveBoolean(@NonNull context: Context, @AttrRes attributeResId: Int, defaultValue: Boolean): Boolean

Returns the boolean value for the provided attributeResId or defaultValue if the attribute is not a boolean or not present in the current theme.