Skip to content

Custom Color not assuming #70

@FilipeOS

Description

@FilipeOS

Hi there,

I have tried to place a custom color coming from color.xml but it's not assuming, it's showing a random color, not the one I try to use, even on MATERIAL or DEFAULT

`String firstLetter = String.valueOf(calls.getName().charAt(0));

    ColorGenerator generator = ColorGenerator.MATERIAL;
    int color = generator.getColor(R.color.amber_400);

    TextDrawable drawable = TextDrawable.builder()
            .beginConfig()
            .fontSize(50)
            .bold()
            .toUpperCase()
            .endConfig()
            .buildRound(firstLetter, color);`

Can someone help?

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