List of usage examples for android.view SurfaceView getWidth
@ViewDebug.ExportedProperty(category = "layout") public final int getWidth()
From source file:Main.java
public static synchronized void cleansurfaceview(SurfaceHolder postureholder, SurfaceView posturesurface) { Canvas canvas = postureholder .lockCanvas(new Rect(0, 0, posturesurface.getWidth(), posturesurface.getHeight())); canvas.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR); postureholder.unlockCanvasAndPost(canvas); Canvas canvasa = postureholder .lockCanvas(new Rect(0, 0, posturesurface.getWidth(), posturesurface.getHeight())); canvasa.drawColor(Color.TRANSPARENT, PorterDuff.Mode.CLEAR); postureholder.unlockCanvasAndPost(canvasa); }