title: two or more nested RelativeLayout
body: <p>I want to ask, working with two or more nested RelativeLayout.
  First code looks like picture 1, When I add <code>android:layout_alignParentRight="true"</code> in second RelativeLayout, this looks like picture 2. I want to align text right to second RelativeLayout. Where is my fault?  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
          xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="wrap_content"
          android:background="@drawable/background"
          android:layout_height="wrap_content"
          android:id="@+id/testRL"&gt;
          &lt;RelativeLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_alignParentRight="true"
                  android:layout_alignParentTop="true"
                  android:id="@+id/testRotateLL"
                  android:background="@drawable/picture_border_offer_first_page"&gt;
                  &lt;TextView
                          android:layout_height="wrap_content"
                          android:layout_width="wrap_content"
                          android:text="7000TL"
                          android:textSize="15sp"
                          android:textColor="@android:color/white"
                          android:id="@+id/amountLayoutTV" /&gt;
          &lt;/RelativeLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Picture 1:</p>
  
  <p><img src="https://i.stack.imgur.com/wfrSE.jpg" alt="Picture 1"></p>
  
  <p>And I add <code>android:layout_alignParentRight="true"</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:background="@drawable/background"
      android:layout_height="wrap_content"
      android:id="@+id/testRL"&gt;
      &lt;RelativeLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentRight="true"
              android:layout_alignParentTop="true"
              android:id="@+id/testRotateLL"
              android:background="@drawable/picture_border_offer_first_page"&gt;
              &lt;TextView
                      android:layout_height="wrap_content"
                      android:layout_width="wrap_content"
                      android:text="7000TL"
                      android:layout_alignParentRight="true"
                      android:textSize="15sp"
                      android:textColor="@android:color/white"
                      android:id="@+id/amountLayoutTV" /&gt;
      &lt;/RelativeLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Picture 2:</p>
  
  <p><img src="https://i.stack.imgur.com/Lkl4a.jpg" alt="Picture 2"></p>