属性介绍
stretchColumns:列被拉伸
shrinkColumns:列被收缩
collapseColumns:列被隐藏
举例测试
<TableLayout android:id="@+id/table1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:stretchColumns="0" > <TableRow ="@+id/row1" android:layout_width android:layout_height="wrap_content" > TextView ="@+id/textView" android:layout_width android:layout_height android:background="#fd8d8d" android:text="測試表格布局" android:textColor="#000000" /> </TableRow> TableLayout> ="@+id/table2" android:shrinkColumns="0,1,2,3" ="@+id/row2"Button ="@+id/button1"="button1" /> ="@+id/button2"="button2" ="@+id/button3"="button3" ="@+id/button4"="button4" ="@+id/table3"="@+id/row3"EditText ="@+id/editText"="查詢" >
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。