TextDrawableResolver

fun TextDrawableResolver(text: String, @ColorInt textColor: Int)

A convenience constructor to create a TextDrawableResolver with a String to be drawn by a textColor.

Parameters

text

The text to be contained by a Drawable.

textColor

The color to draw the text.


fun TextDrawableResolver(text: StringResolver, textColor: ColorResolver)

Parameters

text

A StringResolver which the text to be contained by a Drawable can be retrieved from.

textColor

A ColorResolver which the color to draw the text can be retrieved from.