㈠ android如何用畫筆畫一條直線並能夠繞一個圓心一直做360旋轉
mp2=new Paint();
mp2.setStyle(Paint.Style.STROKE);
mp2.setColor(Color.YELLOW);
mp2.setStrokeWidth(2);
mp2.setAntiAlias(true);
oval=new RectF(
fleft,
ftop,
fleft+fw,
ftop+fw);
int start=0;
canvas.drawArc(oval, start=start>360?0:start+3, 300, false, mp2);
然後不斷invalidate();就會有個圓弧邊 轉啊轉~ 望採納,如果要Demo可以找我