2
我正在编程一个表面,我在背景上放置了一个旋转轮,但它留下了一个奇怪的痕迹,之前一直存在,并且这条痕迹未被删除。这条路线只留在透明背景区域。Android磨损表面旋转离开轨迹
示范:
final float angle = (float) (System.currentTimeMillis() % 2000)
/2000 * 360;
Matrix matrix = new Matrix();
matrix.setRotate(angle,canvas.getHeight()/2,
canvas.getWidth()/2);
canvas.drawBitmap(mWheelBitmap, matrix, new Paint());
invalidate();
我怎样才能解决呢?