MaterialIntroTutorial
MaterialIntroTutorial copied to clipboard
Can't use android.graphics.Color.rgb()?
trafficstars
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
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 👍