最終更新:2015-12-29 (火) 14:39:22 (3034d)
android.view.SurfaceHolder
Top / android.view.SurfaceHolder
public interface SurfaceHolder
Abstract interface to someone holding a display surface.
http://developer.android.com/reference/android/view/SurfaceHolder.html
メソッド
abstract Canvas lockCanvas() Start editing the pixels in the surface. - addCallback(SurfaceHolder.Callback callback) - Add a Callback interface for this holder.
SurfaceHolder.lockCanvas?
- 描画を開始
- abstract Canvas lockCanvas(Rect dirty) - Just like lockCanvas() but allows specification of a dirty rectangle.
- abstract Canvas lockCanvas() - Start editing the pixels in the surface.
SurfaceHolder.unlockCanvasAndPost?
- 描画を終了
コールバック
SurfaceHolder.Callback
abstract void surfaceChanged(SurfaceHolder holder, int format, int width, int height) This is called immediately after any structural changes (format or size) have been made to the surface. abstract void surfaceCreated(SurfaceHolder holder) This is called immediately after the surface is first created. abstract void surfaceDestroyed(SurfaceHolder holder) This is called immediately before a surface is being destroyed.
- indirectサブクラス
- android.opengl.GLSurfaceView
- android.app.NativeActivity
- SurfaceHolder.Callback2?
SurfaceHolder.Callback2?
abstract void surfaceRedrawNeeded?(SurfaceHolder holder) Called when the application needs to redraw the content of its surface, after it is resized or for some other reason.
取得
- public SurfaceHolder SurfaceView.getHolder ()