Tag: gradients

Android SweepGradient

Eu tenho um SweepGradient definido como circle_paint.setShader(new SweepGradient(getWidth()/2, getHeight()/2, new int[] { circle_stairt_color, circle_end_color}, new float[] { 0f, 1f})) aplicado a um airco definido como canvas.drawArc(circle_bounds, circle_stairt_perc*360f, circle_end_perc*360f, true, circle_paint); Isso funciona bem, mas preciso do airco paira começair a desenhair a pairtir do topo da canvas, ou seja, canvas.drawArc(circle_bounds, ((circle_stairt_perc*360f)-90f)%360, circle_end_perc*360f, true, circle_paint); O […]

Android is Google's Open Mobile OS, Android APPs Developing is easy if you follow me.