title: Strange visual issue while making android buttons the same width
body: <p>I have a "Back" and a "Home" button that I am trying to align with the top right of the screen. I would like both buttons to be the same size but still <code>wrap_content</code> so that they are not taking up extra space. The following layout almost works except that the home button is slightly messed up and it is the slightest bit smaller than the back button. </p>
  
  <p>Anyone have any ideas how to fix this?</p>
  
  <p>If I change the second LinearLayout to <code>fill_parent</code>, the buttons become even widths and are aligned perfectly, but they take up way too much space and become very wide.</p>
  
  <p>Screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/81VXX.jpg" alt="http://dl.dropbox.com/u/24225416/Images/back_home_buttons.jpg"></p>
  
  <p>Code:</p>
  
  <pre><code>&lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"&gt;
  
      &lt;RelativeLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;LinearLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:orientation="horizontal"&gt;
  
                  &lt;Button
                      android:id="@+id/home"
                      android:layout_width="0dip"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"                        
                      android:text="Home" /&gt;
  
                  &lt;Button
                      android:id="@+id/back"
                      android:layout_width="0dip"
                      android:layout_height="wrap_content"
                      android:layout_weight="1"
                      android:text="Back" /&gt;
  
          &lt;/LinearLayout&gt;                       
  
      &lt;/RelativeLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Thanks!</p>