title: Trouble with getting a button along with gridview
body: <p>I have a gridview that is inflated by multiple buttons. I used just a gridview and it worked fine. The grid was in correct order and was centered. Although, I wanted to add a button below the grid of buttons that was different and centered. To do this I decided to section off the gridview and then add the button (therefore it wouldn't be affected by the gridview). I tried the following code to seperate the views:</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"&gt;
  
  &lt;TableLayout 
      android:id="@+id/tbl_gridcreator"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:gravity="center"&gt;
      &lt;TableRow&gt;
          &lt;GridView
              android:id="@+id/gridview"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:columnWidth="150px"
              android:numColumns="7"
              android:stretchMode="spacingWidthUniform"
              android:gravity="center"&gt;
              &lt;!-- 
              android:horizontalSpacing="0px" --&gt;
  
          &lt;/GridView&gt;
      &lt;/TableRow&gt;
      &lt;TableRow android:gravity="center"&gt;
          &lt;Button android:text="Submit" 
              android:id="@+id/submit" 
              android:layout_width="wrap_content" 
              android:layout_height="wrap_content"&gt;
          &lt;/Button&gt;
      &lt;/TableRow&gt;
  &lt;/TableLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The problem is that this code smushes the gridview to the left and oddly it flips it (Position 0 is ont he bottom right and the last button is on the top left pushed off screen). The following image shows what is the result:</p>
  
  <p><img src="https://img.photobucket.com/albums/v68/authoreety/gridview_problem.png"></p>
  
  <p>Any idea why its pushed to the left and flipped? Or maybe how I could have just the Gridview with the button on the bottom?</p>