TextDrawableResolver

A DrawableResolver that creates a Drawable with a text retrieved from a StringResolver.

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.

Constructors

Link copied to clipboard
constructor(text: String, @ColorInt textColor: Int)

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

constructor(text: StringResolver, textColor: ColorResolver)

Functions

Link copied to clipboard
open override fun get(context: Context): Drawable

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)