title: How can I set the height of GridView cell based on screen height?
body: <p>In my layout I have only eight cells.<br>
  I want the cell divide all the space available on the screen. Is this possible? </p>
  
  <p>This is my gridview layout:</p>
  
  <pre><code>&lt;GridView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/dataGrid"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:padding="10px"
      android:verticalSpacing="10px"
      android:horizontalSpacing="10px" 
      android:numColumns="2"
      android:gravity="fill" /&gt;
  </code></pre>
  
  <p>And this is the item 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:padding="6dip"  &gt;   
    &lt;TableRow
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" &gt;
      &lt;LinearLayout
          android:orientation="vertical"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"&gt;
        &lt;TextView
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:textColor="#E00000"
            android:textStyle="bold"
            android:gravity="left"
            android:textSize="16dip"/&gt;    
        &lt;TextView
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:textColor="#000000"
            android:textStyle="normal"
            android:gravity="right"
            android:textSize="12dip"/&gt;
      &lt;/LinearLayout&gt;
    &lt;/TableRow&gt;
  &lt;/LinearLayout&gt;
  </code></pre>