Можно ли сделать что-то подобное, когда TV2 относится к TV1, где TV1 и TV2 находятся в разных ветвях макета?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<RelativeLayout
android:id="@+id/RV1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TextView
android:id="@+id/TV01"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:text="test text" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/RV2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/RV1" >
<TextView
android:id="@+id/TV02"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_toRightOf="@+id/TV01" <--------- this references TV01 within the top RelativeView !!!
android:text="other text" />
</RelativeLayout>
</RelativeLayout>
в этом примере оператор android:layout_toRightOf="@+id/TV01"
не работает, так как TV01
находится в другой ветке RealtiveLayout, чем TV02
.
Есть ли способ сделать такие ссылки?
Большое спасибо!