title: Android Button Alignment in XML off
body: <p>I'm using Relative layout and I'm trying to put a button 25dp to the left of center and one 25dp to the right of it. I've put an Anchor at CenterHorizontal and then align the buttons from it. But they won't align where they suppose to. Both end up to the left of the anchor. The left one doesn't move if I change the alignvalue, the right one moves, but it's still off by about 150dp.
  code (I've removed the textViews and EditTexts in the middle in this code to make it shorter):  </p>
  
  <pre><code>    &lt;ScrollView    
        xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:paddingBottom="@dimen/activity_vertical_margin"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:background="#00FF00"
      android:fadeScrollbars="true"&gt;
      &lt;RelativeLayout 
  
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      tools:context=".MainActivity" &gt;
  
  
  
      &lt;View
          android:id="@+id/mCenterAnchor"
          android:layout_centerHorizontal="true"
          android:layout_width="1dp"
          android:layout_height="1dp"
          android:layout_below="@+id/etAnnonsPris"
          /&gt;
  
      &lt;Button
          android:id="@+id/knapp_spara"
          android:layout_width="100sp"
          android:layout_height="wrap_content"
          android:layout_below="@+id/etAnnonsPris"
          android:layout_marginTop="29dp"
          android:layout_toLeftOf="@+id/mCenterAnchor"
          android:layout_marginRight="25dp"
          android:text="@string/knapp_spara" /&gt;
  
      &lt;Button
          android:id="@+id/knapp_visa"
          android:layout_width="100sp"
          android:layout_height="wrap_content"
          android:layout_toRightOf="@+id/mCenterAnchor"
          android:layout_marginLeft="25dp"
          android:layout_alignBaseline="@+id/knapp_spara"
          android:text="@string/knapp_visa" /&gt;
  
  &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>Pic: <a href="http://i.stack.imgur.com/k2QQv.png" rel="nofollow">http://i.stack.imgur.com/k2QQv.png</a></p>