问题描述
求解答求解答求解答
解决方案
public void draw() {try {canvas = sfh.lockCanvas();canvas.drawColor(Color.WHITE);//设置透明度paint.setColor(0x70000000);//绘制大圆canvas.drawCircle(RockerCircleX, RockerCircleY, RockerCircleR, paint);paint.setColor(0x70ff0000);//绘制小圆canvas.drawCircle(SmallRockerCircleX, SmallRockerCircleY, SmallRockerCircleR, paint);} catch (Exception e) {// TODO: handle exception} finally {try {if (canvas != null)sfh.unlockCanvasAndPost(canvas);} catch (Exception e2) {}}}
解决方案二:
这问题问的,就沒什么要求?
解决方案三:
canvas 类有个 drawCircle 方法,你先用大的半径画个圆,然后再用个小的半径画个圆,这样看起来就是大圆套着小圆了。
时间: 2024-11-08 23:17:02