title: Can't get rows in TableLayout to center horizontally
body: <p>I can't get the rows in my TableLayout to center on the screen.  I'm trying to create a 4x4 table of clickable images and want them centered on the screen.  It ends of drawing them left aligned, I would like them to be centered with space on either side.  Here is the code I have:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;TableLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:paddingTop="20dp"&gt;
  
          &lt;TableRow android:layout_gravity="center_horizontal"&gt;
  
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp"
                  android:layout_gravity="center" /&gt;
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" 
                  android:layout_gravity="center" /&gt;
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" 
                  android:layout_gravity="center" /&gt;
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" 
                  android:layout_gravity="center" /&gt;
  
          &lt;/TableRow&gt;
  
          &lt;TableRow android:layout_gravity="center_horizontal"&gt;
  
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" /&gt;
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" /&gt;
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" /&gt;
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" /&gt;
  
          &lt;/TableRow&gt;
  
          &lt;TableRow android:layout_gravity="center_horizontal"&gt;
  
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" /&gt;
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" /&gt;
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" /&gt;
              &lt;ImageView android:src="@drawable/rocket"
                  android:layout_width="60dp"
                  android:layout_height="60dp" 
                  android:padding="3dp" /&gt;            
          &lt;/TableRow&gt;
  
      &lt;/TableLayout&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Any suggestion?</p>