Package com.tomtom.tools.android.api.resourceresolution.drawable
Types
Link copied to clipboard
A DrawableResolver that resolves a Drawable from a theme based on attrId.
Link copied to clipboard
A DrawableResolver that creates a Drawable from a Bitmap and target density based on the display metrics of the Context.
Link copied to clipboard
data class ColorArrayAttrGradientDrawableResolver(@AttrRes gradientColorArrayAttrId: Int, orientation: GradientDrawable.Orientation) : DrawableResolver
Content copied to clipboard
A DrawableResolver that retrieves a color array from a theme using gradientColorArrayAttrId and creates a GradientDrawable from it. The gradient will have a linear shape with the given orientation.
Link copied to clipboard
Link copied to clipboard
A DrawableResolver that retrieves a Drawable from an Icon.
Link copied to clipboard
data class LayerDrawableResolver(layers: List<DrawableResolver>) : DrawableResolver
Content copied to clipboard
A DrawableResolver that creates a Drawable from a list of DrawableResolvers by layering them.
Link copied to clipboard
data class ResourceDrawableResolver(@DrawableRes resourceId: Int) : DrawableResolver
Content copied to clipboard
A DrawableResolver that resolves a Drawable from a Context.