0
是否可以并排显示两个TableLayout(在RelativeLayout中),以便两个表具有相同的宽度?我只是不知道该怎么做。我已经试过将android:stretchColumns="*"
设置为两个表格,但它只是将一个表格拉伸至100%宽度,而第二个表格则被拉出屏幕。并排显示两个TableLayouts
是否可以并排显示两个TableLayout(在RelativeLayout中),以便两个表具有相同的宽度?我只是不知道该怎么做。我已经试过将android:stretchColumns="*"
设置为两个表格,但它只是将一个表格拉伸至100%宽度,而第二个表格则被拉出屏幕。并排显示两个TableLayouts
你也许可以做到这一点与一个LinearLayout
并设置每个TableLayout
重量0.5
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TableLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5" />
<TableLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5" />
</LinearLayout>