У меня есть RelativeLayout с одним ребенком как <include another.xml>
как это root.xml
:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/root"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<include layout="@layout/another.xml"/>
</RelativeLayout>
Мой вопрос: Android чтит android:layout_alignParentRight="true"
на
верхний уровень моего another.xml
?
Мой another.xml
выглядит так:
<RelativelLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/control_panel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:orientation="vertical">
</RelativeLayout>
По сути, я хочу, чтобы все представления в моем another.xml
были выровнены по правому краю с моим корнем.
Я пробовал выше, но представления в моем another.xml
выровнены по левому краю с моим корнем.
Спасибо.