Android drawArc形状不规则

时间:2014-08-08 15:34:30

标签: java android android-canvas

我正在绘制两个弧形,以显示进度。但当弧度为50%时,它显示如上所示。

<code>
@Override
protected void onDraw(Canvas canvas) {
    canvas.drawArc(mArcRect, 135, 270, false, mArcPaint);
    canvas.drawArc(mArcRect, 135, 135, false,
                mProgressPaint);
    //canvas.drawArc(mArcRect, 135, 130, false, mProgressPaint);
}
</code>

但是当我为进度弧绘制扫描角度为130度的圆弧时,它会顺利绘制。enter image description here enter image description here

0 个答案:

没有答案