[android]Circle with SweepGradient to animate
Hi, I m trying to draw a circle as shown in the picture.where my values ranges from 0-100. 0-40 green 41-60 yellow 61-80 orange and 81-100 red. the view should animate from 0 to defined value slowly,this one to achieve. I have tried the following code ,and trying to achieve, code as follows: public class GradiantActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new GradientTestView(this)); } private class GradientTestView extends View { private Paint mPaint