title: How can I force a GridView to use the whole screen (regardless of display size)?
body: <p>I've got the following layout file, which has a <code>GridView</code> and an <code>ImageView</code> behind that as the background.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;FrameLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:background="#FFFFFF"&gt;
      &lt;ImageView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="bottom|right"
              android:layout_marginRight="-70dp"
              android:layout_marginBottom="-50dp"
              android:src="@drawable/s_background"/&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                    android:layout_width="fill_parent"
                    android:layout_height="fill_parent"&gt;
          &lt;GridView xmlns:android="http://schemas.android.com/apk/res/android"
                    android:id="@+id/gridview"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:columnWidth="90dp"
                    android:numColumns="auto_fit"
                    android:verticalSpacing="10dp"
                    android:horizontalSpacing="10dp"
                    android:stretchMode="columnWidth"
                    android:gravity="center"/&gt;
      &lt;/LinearLayout&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>And this is the layout I use for the actual item in each "cell" of the grid :</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="match_parent"
                android:layout_height="match_parent"&gt;
      &lt;TextView
              android:id="@+id/cardInGrid"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:gravity="center"
              android:singleLine="true"
              android:textSize="40sp"
              android:textColor="#660099"
              android:typeface="serif"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I'm seeing the following on my device at the moment :</p>
  
  <p><img src="https://i.stack.imgur.com/JKh4m.png" alt="enter image description here"></p>
  
  <p>Is there any way of making each item in the GridView larger, so it fits the size of the screen and I don't have un-used white space at the bottom of the display?</p>
  
  <p>This works fine on an emulator, but on a device the screen resolution is higher, hence getting the white space at the bottom.</p>
  
  <p>Many thanks</p>