deux ou plus imbriquée RelativeLayout

Je voudrais demander, en collaboration avec deux ou plus imbriquée RelativeLayout.
D'abord à quoi ressemble le code de l'image 1, Lorsque j'ajoute android:layout_alignParentRight="true" en deuxième RelativeLayout, cela ressemble à l'image 2. Je veux aligner le texte à droite à la deuxième RelativeLayout. Où est ma faute?

<?xml version="1.0" encoding="utf-8"?>
<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">
        <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">
                <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" />
        </RelativeLayout>
</RelativeLayout>

Photo 1:

deux ou plus imbriquée RelativeLayout

Et j'ajoute android:layout_alignParentRight="true"

<?xml version="1.0" encoding="utf-8"?>
<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">
    <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">
            <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" />
    </RelativeLayout>
</RelativeLayout>

Photo 2:

deux ou plus imbriquée RelativeLayout

essayez d'ajouter à TextView android:layout_alignParentTop="true"
pire scénario: Ajouter ImageView avant TextView au lieu de android:background="@drawable/picture_border_offer_first_page". Ils se superpose
J'ai essayé alightTop, de son même.
peut-être, je peux le faire en ajoutant une imageview, mais ce n'est pas répondre à mes questions... (je vais essayer)
J'ai eu le même problème avec un imbriquée mise en page, m'a fallu plusieurs heures pour trouver ce qu'il provoque. Avait à faire avec LinearLayouts et en évitant les alignant avec les parents... il y a une faille quelque part dans le code Android je crois

OriginalL'auteur atasoyh | 2011-10-12