QuantityIconDrawableResolver
data class QuantityIconDrawableResolver(quantity: Int, @AttrRes iconSize: Int, @AttrRes backgroundColor: Int, @AttrRes textAppearance: Int, @AttrRes textColor: Int) : DrawableResolver
A drawable resolver that creates an icon filled with a background color and a quantity value with a density based on context used to resolve the icon.
Parameters
quantity
A quantity in range [0..QUANTITY_MAX_VALUE]; value is clamped to those boundaries otherwise.
Constructors
Inherited functions
Link copied to clipboard
Link copied to clipboard
A convenience function to map a DrawableResolver to an ImageDescriptor with the provided imageType.
A convenience function to map a nullable DrawableResolver to an ImageDescriptor with the provided imageType.
Link copied to clipboard