title: Align to right side of relative layout does not seem to work
body: <p>I am trying to have 2 textviews one next to the other to the right side of the parent container.<br>
  Something like:  </p>
  
  <pre><code>+++++++++++++++++++++++++++++++++++++  (parent container)  
  |               TextView2 TextView1 |  
  +++++++++++++++++++++++++++++++++++++    
  </code></pre>
  
  <p>The following does not work but I can't understand why  </p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:orientation="vertical"
                android:layout_width="100dp"
                android:layout_height="match_parent"&gt;
  
      &lt;RelativeLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;TextView
              android:id="@+id/textView1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:layout_alignParentTop="true"
              android:text="TEXTVIEW-1" /&gt;
  
          &lt;TextView
              android:id="@+id/textView2"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentTop="true"
              android:layout_alignParentRight="true"
              android:layout_toLeftOf="@id/textView1"
              android:layout_marginRight="1dp"
              android:text="TEXTVIEW-2" /&gt;
  
      &lt;/RelativeLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Note: The 100dp is only just to show the problem</p>
  
  <p><strong>UPDATE:</strong><br>
  After removing android:layout_alignParentTop="true" and android:layout_alignParentRight="true" I get:  </p>
  
  <p><a href="https://i.stack.imgur.com/qkWaI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qkWaI.png" alt="enter image description here"></a></p>