Weird margin issue with relative layout
<p>I am trying to have a TextView to fill the space between a button on the left and the edge of the layout on the right.</p>

<pre><code>&lt;TextView
    android:id="@+id/welcomeHeader"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
    android:layout_toRightOf="@+id/setInfusionReminder"
    android:layout_marginRight="20dp"
    android:layout_marginLeft="20dp"
    android:layout_marginTop="20dp"
    android:gravity="center"
    android:text="Welcome!" /&gt;
</code></pre>

<p>What I am seeing in the editor however is <code>android:layout_marginRight</code> is applied on the left. The end result is 40dp margin on the left and 0 margin on the right.</p>

<p><img src="http://i.stack.imgur.com/IwbAr.png" alt="enter image description here"></p>
