How to draw a circle with radial gradient in a canvas?
问题 I created a circle button that can change his color when I call a function. What I want is to create another one, that creates the same circle button but with a radial gradient that starts in the middle with the color selected and that goes to transparent when you go out of the circle. I created a similar code using the one posted at How to set gradient style to paint object? but don't worked. The code that I tried is to this porpuse is: mPaint.setShader(new RadialGradient(0, 0, height/3,