How can I draw an arc using a Shader such as SweepGradient?
The examples I have all take a Paint object:
Paint lightRed = new Paint(); lightRed.setAntiAl
Try this:
Shader gradient = new SweepGradient (0,getMeasuredHeight()/2, Color.RED, Color.WHITE); lighted.setShader(gradient); canvas.drawArc(rectf, -90, 360, false, lightRed);
You can modify the position and color values.