title: Android button position in table row
body: <p>I have a table layout with a button in its lowest row:</p>
  
  <p>
  </p>
  
  <pre><code>&lt;TableRow&gt;
  
      &lt;TextView
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/name" &gt;
      &lt;/TextView&gt;
  
      &lt;EditText
          android:id="@+id/name"
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="left" &gt;
      &lt;/EditText&gt;
  &lt;/TableRow&gt;
  
  &lt;TableRow&gt;
  
      &lt;TextView
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/frist_name" &gt;
      &lt;/TextView&gt;
  
      &lt;EditText
          android:id="@+id/firstName"
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="left" &gt;
      &lt;/EditText&gt;
  &lt;/TableRow&gt;
  
  &lt;TableRow&gt;
  
      &lt;TextView
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/telephone" &gt;
      &lt;/TextView&gt;
  
      &lt;EditText
          android:id="@+id/telephone"
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="left" &gt;
      &lt;/EditText&gt;
  &lt;/TableRow&gt;
  &lt;TableRow&gt;
  
      &lt;TextView
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/userName" &gt;
      &lt;/TextView&gt;
  
      &lt;EditText
          android:id="@+id/userName"
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="left" &gt;
      &lt;/EditText&gt;
  &lt;/TableRow&gt;
  &lt;TableRow&gt;
  
      &lt;TextView
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="@string/password" &gt;
      &lt;/TextView&gt;
  
      &lt;EditText
          android:id="@+id/password"
          android:inputType="textPassword"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="left" &gt;
      &lt;/EditText&gt;
  &lt;/TableRow&gt;
  &lt;TableRow&gt;
  
  
      &lt;Button
  
          android:id="@+id/saveMasterDataButton"
          android:text="@string/save"
          android:layout_gravity="center_horizontal|fill_horizontal"
  
  
          android:textAllCaps="false"
          android:visibility="visible"
          android:gravity="left|center_vertical|center_horizontal" /&gt;
  
  &lt;/TableRow&gt;
  </code></pre>
  
  <p></p>
  
  <p>My Problem ist that the button is always by default out of alignment with the text content in the same column above it by 1 or 2 mm to the right. I fiddled around with various tricks, removing the shade, but the results where never satisfactory.</p>
  
  <p>Here is how this button looks like:<a href="http://i.stack.imgur.com/fatli.jpg" rel="nofollow">Save button out of alignment</a></p>
  
  <p>Thanks </p>
  
  <p>Matthias</p>