title: Gridview height gets cut
body: <p>I'm trying to display 8 items inside a gridview. Sadly, the gridview height is always too little, so that it only shows the first row, and a little part of the second.</p>
  
  <p>Setting <code>android:layout_height="300dp"</code> makes it work. wrap_<code>content</code> and <code>fill_parent</code> apparently not.</p>
  
  <p>My grid view:</p>
  
  <pre><code>&lt;GridView
      android:id="@+id/myId"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:gravity="center"
      android:horizontalSpacing="2dp"
      android:isScrollContainer="false"
      android:numColumns="4"
      android:stretchMode="columnWidth"
      android:verticalSpacing="20dp" /&gt;
  </code></pre>
  
  <p>My items resource:</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="wrap_content"
      android:layout_height="wrap_content"
      android:orientation="vertical"
      android:minHeight="?android:attr/listPreferredItemHeight" &gt;
  
      &lt;ImageView
          android:id="@+id/appItemIcon"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:src="@android:drawable/ic_dialog_info"
          android:scaleType="center" /&gt;      
  
      &lt;TextView
          android:id="@+id/appItemText"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="My long application name"
          android:gravity="center_horizontal"
          android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The issue does not seem related to a lack of vertical space.</p>
  
  <p>What can I do ?</p>