0

How can i do that? Is there an example for that? Can you show me ?

For ex. I have an circle like that

RadialGradient gradient = new RadialGradient(0, 0, 40, new int[]{Color.RED, Color.YELLOW}, new float[] {1,0}, android.graphics.Shader.TileMode.CLAMP);
paint2.setShader(gradient);
canvas.drawCircle(this.getWidth()/2, this.getHeight()/2, 40, paint2);

How this circle can draw a circle?

user2205733
  • 57
  • 2
  • 6
  • 1
    You're going to have to explain the question a little better. Do you want to draw a circle INSIDE that circle? – Display Name is missing Mar 28 '13 at 19:50
  • yeah exactly this is. But the circle which draw a new circle must be smaller than other.(which is drawn) Above circle is drawer circle and it will smaller than new circle which will be drawing by it – user2205733 Mar 28 '13 at 19:52
  • This should help you out: http://stackoverflow.com/questions/13992094/how-to-draw-a-smaller-shapedrawable-inside-another-shapedrawable-programmaticall – Display Name is missing Mar 28 '13 at 20:02

0 Answers0