title: Android 4.0 emulator default widget height
body: <p>I'm testing out my application in the Android 4.0 emulator and I'm having an issue with widget size. My widget (taken from the AOSP music app) is defined as:</p>
  
  <pre><code>&lt;appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
      android:minWidth="294dip"
      android:minHeight="72dip"
      android:updatePeriodMillis="0"
      android:initialLayout="@layout/appwidget_one"
      &gt;
  &lt;/appwidget-provider&gt;
  </code></pre>
  
  <p>and the layout:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="horizontal"
      android:background="@drawable/appwidget_bg"&gt;
  
     &lt;LinearLayout
          android:id="@+id/appwidget_one"
          android:layout_width="0dip"
          android:layout_weight="3"
          android:layout_height="fill_parent"
          android:orientation="vertical"
          android:gravity="center_vertical"
          android:clickable="true"
          android:focusable="true"
          android:background="@drawable/appwidget_button_left"
          android:paddingLeft="18dip"
          android:paddingRight="8dip"
          &gt;
  
          &lt;TextView
              android:id="@+id/title"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="@color/appwidgetone_text"
              android:textStyle="bold"
              android:textSize="18sp"
              android:singleLine="true"
              android:fadingEdge="horizontal"
              android:fadingEdgeLength="10dip"
              android:ellipsize="none"
              /&gt;
  
          &lt;TextView
              android:id="@+id/artist"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:textColor="@color/appwidgetone_text"
              android:textSize="14sp"
              android:singleLine="true"
              android:fadingEdge="horizontal"
              android:fadingEdgeLength="10dip"
              android:ellipsize="none"
              /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;ImageView
          android:layout_width="1dip"
          android:layout_height="fill_parent"
          android:background="@drawable/appwidget_divider"
          /&gt;
  
      &lt;ImageButton
          android:id="@+id/control_play"
          android:layout_width="0dip"
          android:layout_weight="1"
          android:layout_height="fill_parent"
          android:src="@drawable/ic_appwidget_music_play"
          android:background="@drawable/appwidget_button_center"
          android:scaleType="center"
          /&gt;
  
      &lt;ImageView
          android:layout_width="1dip"
          android:layout_height="fill_parent"
          android:background="@drawable/appwidget_divider"
          /&gt;
  
      &lt;ImageButton
          android:id="@+id/control_next"
          android:layout_width="0dip"
          android:layout_weight="1"
          android:layout_height="fill_parent"
          android:src="@drawable/ic_appwidget_music_next"
          android:background="@drawable/appwidget_button_right"
          android:scaleType="center"
          /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>In the 2.3 emulator (and all versions below) the widget only takes up 1 cell in height and 4 in width (1 x 4) However, it takes up 2 cells for the height in the Android 4.0 emulator, making it 2 x 4 by default. Can someone tell me why this is happening and how to fix it? Thanks in advance.</p>