0
I'm使用由侧2的表侧的的LinearLayout和当当屏幕宽度的两个填充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"
做到这一点,但那是行不通的。
那么,有没有办法做到这一点?
对于物业工作所引用的布局应该被包含在里面RelativeLayout的。 – ZhDev 2013-05-06 16:51:48
以及关于在RelativeLayout..r中添加TableView之后剩下的剩余空间的信息。 – bakriOnFire 2013-05-06 17:02:37