I adjusted the image, but it was just rotated by its bitmap, and not the whole view. I don’t want to use animation because I am dragging and dropping the image so that the moving animated results of the image look strange, so sticking to onDraw/draw, plus overriding a draw does nothing special.
@Override
protected void onDraw(Canvas canvas) {
canvas.save();
canvas.rotate(rotationAngle, rotationW, rotationH);
super.onDraw(canvas);
canvas.restore();
}
how can i rotate the whole view not only its bitmap?
source
share