Button width in Android TableLayout
<p>I have a TableLayout with a button at the bottom.   My problem is that the button stretches to fill the entire width of the column even though I don't want it that wide. </p>

<p><img src="http://i.stack.imgur.com/jeNcq.jpg" alt="alt text"></p>

<p>The XML looks like this:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;TableLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:stretchColumns="*"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"&gt;
   &lt;TableRow android:layout_height="wrap_content"
        android:layout_width="fill_parent"&gt; 
     &lt;CheckBox android:id="@+id/check1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" 
      android:text="Some text 1"/&gt;
     &lt;CheckBox android:id="@+id/check2"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Some text 1"/&gt;
   &lt;/TableRow&gt;
   &lt;TableRow android:layout_height="wrap_content"
        android:layout_width="fill_parent"&gt;  
     &lt;CheckBox android:id="@+id/check3"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" 
      android:text="Even some more text 2"/&gt;
     &lt;CheckBox android:id="@+id/check4"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Even some more text 2"/&gt;
   &lt;/TableRow&gt; 
   &lt;TableRow android:layout_height="wrap_content"
        android:layout_width="fill_parent"&gt; 
     &lt;CheckBox android:id="@+id/check5"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content" 
      android:text="An even longer line of text 3"/&gt;
     &lt;CheckBox android:id="@+id/check6"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="Another longer line of text 3"/&gt; 
   &lt;/TableRow&gt;

   &lt;EditText
      android:id="@+id/myEditText1"
      android:layout_width="fill_parent" 
      android:layout_height="wrap_content"
      android:inputType="textMultiLine"
      android:singleLine="false"
      android:text="Enter some text"
    /&gt;

   &lt;TableRow&gt; 
   &lt;Button android:id="@+id/SaveButton"
      android:layout_width="wrap_content" 
      android:layout_height="wrap_content"
      android:text="Save"&gt;
  &lt;/Button&gt; 
  &lt;/TableRow&gt;       

&lt;/TableLayout&gt;
</code></pre>

<p>Even if I set an explicit width to the button it ignores it.  For example if I have:</p>

<pre><code>   &lt;Button android:id="@+id/SaveButton"
      android:layout_width="100sp"
      android:layout_height="100sp"
      android:text="Save"&gt;
  &lt;/Button&gt; 
</code></pre>

<p>... the button gets taller but the width still stretches to fill the column.</p>

<p>I'd like the button to be about half its current width, centered in the column.   <strong>Thanks in advance!!</strong></p>
