title: Android - SurfaceView (width, height) problem
body: <p>Im new to android and im facing some issues...</p>
  
  <p>Im using a SurfaceView to extend my class.
  In my class i cant get width and height of the SurfaceView.
  It is always 0. Im trying to flick an image on the entire screen (surfaceView) but im unable to get its width and height.</p>
  
  <p>Any suggestions?</p>
  
  <p>Here is the code for SurfaceView in main.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
      &lt;test.MyClass android:id="@+id/SurfaceView01"
          android:layout_width="fill_parent" android:layout_height="fill_parent"&gt;
      &lt;/test.MyClass&gt;
  &lt;/LinearLayout&gt;
  </code></pre>