private void drawBackground(Canvas canvas) { mPaint.setColor(mCurrentColor); mPaint.setAntiAlias(true);//背景绘制抗锯齿 mPaint.setStyle(Paint.Style.FILL); canvas.drawPath(mBackgroundPath, mPaint); mPaint.reset(); }