Skip to content

Can't use android.graphics.Color.rgb()? #70

Closed

Description

@roblav96

I'd like to set the colors programmatically like so:

.outerCircleColor(android.graphics.Color.rgb(255, 0, 0))

but it throws android.content.res.Resources$NotFoundException: Resource ID #0xffff0000.

Is this really not possible?

Activity

  1. squarenotch commented on Nov 20, 2016

    @squarenotch

    Thank you for such a fantastic library. I would really like to be able to pass a color value rather than ID. Do you think this might be something you might implement?

  2. xiphirx commented on Nov 20, 2016

    @xiphirx
    Collaborator

    Please use 1.5.3 for this functionality.

  3. squarenotch commented on Nov 20, 2016

    @squarenotch

    @xiphirx Works brilliantly. Thank you very much.

  4. roblav96 commented on Nov 21, 2016

    @roblav96
    Author

    @xiphirx @squarenotch 🌮 🎉 🎂 🎁 🍰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions