title: Exception in Android XML
body: <p>I get an exception every time I launch the application. Here is the stacktrace for the exception</p>
  
  <pre><code>10-01 14:49:35.321: WARN/WindowManager(61): Exception when adding starting window
  10-01 14:49:35.321: WARN/WindowManager(61): java.lang.RuntimeException: Binary XML file line #25: You must supply a layout_height attribute.
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:438)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3468)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.view.ViewGroup$MarginLayoutParams.&lt;init&gt;(ViewGroup.java:3547)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.widget.LinearLayout$LayoutParams.&lt;init&gt;(LinearLayout.java:1265)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1191)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
  10-01 14:49:35.321: WARN/WindowManager(61):     at com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2153)
  10-01 14:49:35.321: WARN/WindowManager(61):     at com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:2207)
  10-01 14:49:35.321: WARN/WindowManager(61):     at com.android.internal.policy.impl.PhoneWindow.getDecorView(PhoneWindow.java:1395)
  10-01 14:49:35.321: WARN/WindowManager(61):     at com.android.internal.policy.impl.PhoneWindowManager.addStartingWindow(PhoneWindowManager.java:818)
  10-01 14:49:35.321: WARN/WindowManager(61):     at com.android.server.WindowManagerService$H.handleMessage(WindowManagerService.java:8794)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.os.Handler.dispatchMessage(Handler.java:99)
  10-01 14:49:35.321: WARN/WindowManager(61):     at android.os.Looper.loop(Looper.java:123)
  10-01 14:49:35.321: WARN/WindowManager(61):     at com.android.server.WindowManagerService$WMThread.run(WindowManagerService.java:531)
  </code></pre>
  
  <p>I am also posting the XML file I'm using.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/arw_layout" android:orientation="horizontal"
      android:layout_width="fill_parent" android:layout_height="wrap_content"&gt;
      &lt;ImageView android:id="@+id/arw_logo" android:layout_width="30px"
          android:layout_height="40px" android:layout_alignParentRight="true" /&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="horizontal" android:layout_width="fill_parent"
          android:layout_height="wrap_content" android:gravity="center"
          android:layout_alignParentLeft="true"&gt;
          &lt;TextView android:id="@+id/arw_left" android:layout_width="wrap_content"
              android:layout_height="wrap_content" android:text="@string/arw_left"
              android:textSize="25sp" android:paddingLeft="10dp"
              android:paddingRight="10dp" android:gravity="center_vertical" /&gt;
          &lt;TextView android:id="@+id/arw_title" android:layout_width="wrap_content"
              android:layout_height="wrap_content" android:minEms="10"
              android:text="@string/arw_title" android:paddingLeft="10dp"
              android:paddingRight="10dp" android:gravity="center" /&gt;
          &lt;TextView android:id="@+id/arw_right" android:layout_width="wrap_content"
              android:layout_height="wrap_content" android:text="@string/arw_right"
              android:textSize="25sp" android:paddingLeft="10dp"
              android:paddingRight="10dp" android:gravity="center_vertical" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
      android:shape="rectangle"&gt;
    &lt;gradient
        android:startColor="#FF493538"
        android:centerColor="#FF000000"
        android:endColor="#FF000000"
        android:angle="270" /&gt;
  &lt;/shape&gt;
  
  
  &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;TextView  
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content" 
      android:text="@string/hello"
      /&gt;
  &lt;/LinearLayout&gt;
  
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  &lt;declare-styleable name="Gallery1"&gt;
          &lt;attr name="android:galleryItemBackground" /&gt;
      &lt;/declare-styleable&gt;
  &lt;/resources&gt;
  
  
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;resources&gt;
          &lt;style name="WindowTitleBackground" parent="android:WindowTitleBackground"&gt;
              &lt;item name="android:background"&gt;@drawable/gradient&lt;/item&gt;
          &lt;/style&gt;
      &lt;/resources&gt;
  
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;resources&gt;
      &lt;style name="titletheme"&gt;
          &lt;item name="android:windowTitleBackgroundStyle"&gt;@style/WindowTitleBackground
          &lt;/item&gt;
      &lt;/style&gt;
  &lt;/resources&gt; 
  </code></pre>