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

Gradient coloring for seek arc #66

Open
mbabhi opened this issue Dec 5, 2017 · 1 comment
Open

Gradient coloring for seek arc #66

mbabhi opened this issue Dec 5, 2017 · 1 comment

Comments

@mbabhi
Copy link

mbabhi commented Dec 5, 2017

Hi
I need to color the seek arc. Using the Linear gradient.

mProgressPaint.setShader(new LinearGradient(0, 0, 0, getHeight(), new int[]{blue, green,red} ,new float[]{0,0.5f,1},Shader.TileMode.MIRROR));

The above piece of code is not displaying the gradient properly, need blue in the beginning, green in middle and red at the end.Colors are distributes un-evenly.

Any help is much appreciated.

@rfgallagher1
Copy link

Hey did you ever get this working?

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