Skip to content

Random color doesn't work #71

@rodrinac

Description

@rodrinac

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions