You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: