Hi,
This is the code I have
private val textBuilder = TextDrawable.builder()
private val colorGenerator = ColorGenerator.MATERIAL;
fun String.toTextDrawable() : TextDrawable {
return textBuilder.buildRound(
this[0].toString(),
colorGenerator.randomColor
)
}
The generated drawable has aways a gray background.
Hi,
This is the code I have
private val textBuilder = TextDrawable.builder()
private val colorGenerator = ColorGenerator.MATERIAL;
The generated drawable has aways a gray background.