Material Attributes
Utility methods to work with attributes.
Functions
Link copied to clipboard
Returns the TypedValue for the provided
attributeResId
or null if the attribute is not present in the current theme.Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the minimum touch target size, acceptable for accessibility, in pixels.
Link copied to clipboard
Returns the TypedValue for the provided
attributeResId
, using the context of the provided componentView
.open fun resolveOrThrow(@NonNull context: Context, @AttrRes attributeResId: Int, @NonNull errorMessageComponent: String): Int
Returns the TypedValue for the provided
attributeResId
.Link copied to clipboard
open fun resolveTypedValueOrThrow(@NonNull componentView: View, @AttrRes attributeResId: Int): TypedValue
open fun resolveTypedValueOrThrow(@NonNull context: Context, @AttrRes attributeResId: Int, @NonNull errorMessageComponent: String): TypedValue