TableLayout常用细节
列号为1的列收缩
android:shrinkColumns="1"
列号为2的列扩展
android:stretchColumns="2"
表明列号
android:layout_column="1"
合并列
android:layout_span="2"
示例:
<TableLayoutandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:stretchColumns="1"><TableRow><TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="username"/> <EditText android:layout_column="1" android:layout_width="wrap_content" android:layout_height="wrap_content" /></TableRow><TableRow><Button android:layout_span="2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button" android:layout_gravity="center"/></TableRow></TableLayout>
没找到合并行的方法,继续学习...