0
TableLayout
包含易于使用的属性android:stretchColumns="*"
,以便均匀地在表格大小上分配列宽。对于行可以做同样的事吗?在表格布局的高度上均匀分布行
TableLayout
包含易于使用的属性android:stretchColumns="*"
,以便均匀地在表格大小上分配列宽。对于行可以做同样的事吗?在表格布局的高度上均匀分布行
TableLayout
延伸LinearLayout
,所以你可以定义你TableRows
这样:
<TableRow xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="0"
android:layout_weight="1"/>
护理解释downvote? – Maarten