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

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

Open
roblav96 opened this issue Nov 23, 2016 · 1 comment
Open

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

roblav96 opened this issue Nov 23, 2016 · 1 comment

Comments

@roblav96
Copy link

roblav96 commented Nov 23, 2016

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

@riggaroo
Copy link
Owner

Unfortunately this hasn't been implemented yet and I haven't had the time to do it. This library is open to pull requests if you still need this done 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants