Code example for SurfaceView

Methods: getHeight, getLayoutParams, getWidth