title: gridview second row doesn't appear when set height to warp content
body: <p>I'm adding a ImageView item to the empty GridView programmatically so when i set the height 
  to wrap content the second row disappears.</p>
  
  <p>Here's the gridview xml : </p>
  
  <pre><code>    &lt;GridView
      android:id="@+id/gridView"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:columnWidth="100dip"
      android:gravity="center"
      android:horizontalSpacing="10dip"
      android:numColumns="2"
      android:stretchMode="spacingWidthUniform"
      android:verticalSpacing="10dip" /&gt;
  </code></pre>
  
  <p>I tried to set the hight to wrap content programmatically after adding the items but it didn't work, and i know that i can't predifine the number of rows, and i don't want to set a fixed height.</p>
  
  <p>Any help ?</p>