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
fun DrawableResolver.toImageDescriptor( imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER): ImageDescriptor
A convenience function to map a DrawableResolver to an ImageDescriptor with the provided imageType and scaleType.
fun DrawableResolver?.toImageDescriptor( imageType: ImageType = ImageType.DEFAULT, scaleType: ImageView.ScaleType = ScaleType.FIT_CENTER): ImageDescriptor?
A convenience function to map a nullable DrawableResolver to an ImageDescriptor with the provided imageType and scaleType.
Link copied to clipboard