代码:
<TableLayout
android:id="@+id/TableLayout01";
android:layout_width=""wrap_content;
android:layout_height="wrap_content";
android:collapseColumns="3";
android:strethchColumns="1";
>请问这两行代码:android:collapseColumns="3";
android:strethchColumns="1";
中的“3”和“1”代表什么意思呢?
请会的朋友帮忙回答,在此先谢了。
<TableLayout
android:id="@+id/TableLayout01";
android:layout_width=""wrap_content;
android:layout_height="wrap_content";
android:collapseColumns="3";
android:strethchColumns="1";
>请问这两行代码:android:collapseColumns="3";
android:strethchColumns="1";
中的“3”和“1”代表什么意思呢?
请会的朋友帮忙回答,在此先谢了。
android:collapseColumns ---------隐藏列号
android:strethchColumns ---------自动伸展列号。对应设置的列的layout_width属性会无效,会根据TableLayout布局完其他列后剩余长度来设置
这里有效果图 你看看吧