Skip to content
This repository was archived by the owner on Jun 19, 2021. It is now read-only.
This repository was archived by the owner on Jun 19, 2021. It is now read-only.

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

@roblav96

Description

@roblav96

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

TutorialItem tutorialItem1 = new TutorialItem(
	context.getString(R.string.slide_1_african_story_books), context.getString(R.string.slide_1_african_story_books_subtitle),
	android.graphics.Color.rgb(255, 0, 0), // << RIGHT HERE
	R.drawable.tut_page_1_front,
	R.drawable.tut_page_1_background
)

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

Is this really not possible?

Example Source

Here's an example on how to implement it.
https://github.com/KeepSafe/TapTargetView/pull/71/files

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