Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setOnColor() shows a different color instead #3

Open
jsmeke opened this issue Jan 24, 2018 · 1 comment
Open

setOnColor() shows a different color instead #3

jsmeke opened this issue Jan 24, 2018 · 1 comment

Comments

@jsmeke
Copy link

jsmeke commented Jan 24, 2018

When I assign the OFF, MID and ON colors on the xml file the colors are displayed correctly, but when I set them programmatically through setOnColor(), setMidColor() and setOffColor(), the color displayed is another.

The way I set the color is:
tstbAppState.setOnColor(R.color.yellow);

By the way, thanks for the library...

@Swavis
Copy link

Swavis commented Jan 23, 2019

Yes, same issue, when i am trying to set transparent color (#26000000) through xml, it shows Black color instead.
@jsmeke did you find the solution..?

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

No branches or pull requests

2 participants