title: Android - Layout error
body: <p>I'm trying to create a button. I've done something like this before, but now I got an error and I' can't find out what is it. I think i've got the problem in the xml file, but can't find it :S </p>
  
  <p>So there is my XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;</code></p>
  
  <pre><code>&lt;RelativeLayout
      android:layout_width="fill_parent"
      android:layout_height="fill_parent" &gt;
  
      &lt;ImageButton
          android:id="@+id/login"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_marginLeft="115dp"
          android:layout_marginTop="80dp"
          android:src="@drawable/login_button" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>I'm trying to implemet some kind of facebook login. I'm using the easyfacebook sdk. So here is the java code where i trying to implement the login button:   </p>
  
  <p><a href="http://pastebin.com/brHmJKs1" rel="nofollow">http://pastebin.com/brHmJKs1</a></p>
  
  <p>The messages i get is the following:</p>
  
  <p>W/webcore(29941): Can't get the viewWidth after the first layout</p>
  
  <p>E/SkLayout_wtle(29941): layout error:106 width:0 ellipsizedWidth:0</p>
  
  <p>W/InputManagerService(1171): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@405c4e68</p>