I am trying to use the Camera (android.graphics.Camera not the hardware camera) to rotate a views canvas around a specific point, in this instance the middle of the canvas.
This worked for me:
@Override
public void drawPixmap3D(Pixmap pixmap, int x, int y, int r) {
Camera camera = mCamera;
int cx = pixmap.getWidth()/2;
camera.save();
camera.rotateY(r);
camera.getMatrix(mtx);
mtx.preTranslate(-cx, 0);
mtx.postTranslate(x, y);
camera.restore();
canvas.drawBitmap(((AndroidPixmap)pixmap).bitmap, mtx, this.paint);
}