public class Canvas public final void rotate (float degrees, float px, float py) Parameters degrees The amount to rotate, in degrees px The x-coord for the pivot point (unchanged by the rotation) py The y-coord for the pivot point (unchanged by the rotation) ---------------- http://www.atmarkit.co.jp/fsmart/articles/android12/android12_2.html ■ Canvasのメソッド  Canvasのメソッドsave()とrestore()は、Java SEやJava MEのCanvasにはない概念なので、紹介しておきます。  Canvas#save()は呼び出された状態を内部スタックに保存し、Canvas#restore()でスタックから保存された状態を復元します。下記サンプルは状態保存後、45度回転させて文字を描画し、元の状態に戻しています。 void doDraw() { Canvas canvas = getHolder().lockCanvas(); canvas.save(); // ★ここで状態を保存 canvas.rotate(45.0f); Paint paint = new Paint(); canvas.drawColor(Color.WHITE); paint.setColor(Color.BLUE); paint.setAntiAlias(true); paint.setTextSize(24); canvas.drawText("Hello, SurfaceView!", paint.getTextSize(), 0, paint); canvas.restore(); // ★ここで状態を復元 getHolder().unlockCanvasAndPost(canvas); }  こうすることで、文字だけが45度回転して描画されたことになります。 ----------------------- ◆ Android 端末のディスプレイサイズを取得するCommentsAdd Star Activity#onCreate WindowManager wm = (WindowManager) getSystemService(Context.WINDOW_SERVICE); Display display = wm.getDefaultDisplay(); Log.d("display", "w:" + display.getWidth()); Log.d("display", "h:" + display.getHeight()); 実行結果 w:320 h:480 ----------------------------