LinearLayout で 2 つのテーブルを並べて使用していますが、どちらも画面幅の 50% を占めています。その LinearLayout の下には、別のテーブルを含む RelativeLayout があります。
このようなもの:
<LinearLayout>
<TableLayout>
<TableRow>
...
</TableRow>
</TableLayout>
<TableLayout>
<TableRow>
...
</TableRow>
</TableLayout>
</LinearLayout>
<RelativeLayout>
... some views ...
<TableLayout>
<TableRow>
...
</TableRow>
</TableLayout>
</RelativeLayout>
ここで、RelativeLayout のテーブルの幅を LinearLayout の最初のテーブルと同じにしたいと考えています。でできると思ったのですandroid:layout_alignRight="@+id/Linearlayout_table1"
が、うまくいきません。
それで、これを行う方法はありますか?