Home > Mobile >  A custom VIew to draw the progress bar (arc) problems set color gradient
A custom VIew to draw the progress bar (arc) problems set color gradient

Time:02-08

Using SweepGradient set the gradient, but it affects the whole circle, I as long as the arc that the color is a, the result is all round the color, covered in my impression, I how to solve?

CodePudding user response:

Solved, because I draw circles with the same brush, so also bring a gradient, when the circle is to clear the shader
  • Related