Since there is no code or details provided about where the bitmap is drawn, I assume it is in the center of the screen. You can rotate the canvas at a central point, like this
double rotationAngleRadians = Math.atan2(currentX - centerX, centerY - currentY);
rotationAngleDegrees = (int) Math.toDegrees(rotationAngleRadians );
canvas.rotate(rotationAngleDegrees , centerX, centerY);
source
share