TableLayout
2015-12-19 09:04
274 查看
1.
<TableRow>和
<TextView>中的layout_width和layout_height都是由tablelayout控制
2.
<TextView android:layout_column="1">
layout_column设置为第一列
3.
<TextView android:layout_span="2">
layout_span设置跨2列
4. stretchColumns设置拉伸第几列
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:stretchColumns="1"> <TableRow > <TextView android:layout_column="1" android:text="XX" android:textSize="32sp" /> <TextView android:gravity="right" android:text="CTRL+O" android:textSize="32sp" /> </TableRow> <TableRow > <TextView android:text=" " android:textSize="32sp" /> <TextView android:text="XX" android:textSize="32sp" /> <TextView android:text="SHIFT+CTRL+O" android:textSize="32sp" /> </TableRow> <TableRow > <TextView android:text="T" android:textSize="32sp" /> <TextView android:layout_span="2" android:text="XX" android:textSize="32sp" /> </TableRow> </TableLayout>
相关文章推荐
- Fiddler 教程
- TensorFlow 官方文档中文版
- MapReduce的体系结构
- 修改oracle为归档模式
- Linux运维 第五阶段(八)iSCSI
- 为应用程序加入缓存
- 在jQuery代码中,实现转跳
- dancing link
- BZOJ_P1088&Codevs_P2452 [SCOI2005]扫雷(DP)
- ios Foundation框架中的可变和不可变对象NSString 和NSMutableString(一)
- HDU 4932 贪心
- 深度学习方法:受限玻尔兹曼机RBM(三)模型求解,Gibbs sampling
- 深度学习方法:受限玻尔兹曼机RBM(三)模型求解,Gibbs sampling
- BZOJ2186: [Sdoi2008]沙拉公主的困惑
- 深度学习方法:受限玻尔兹曼机RBM(三)模型求解,Gibbs sampling
- 一个程序猿的奋斗史——大学入学
- ylbtech-dbs:ylbtech-3,BarCode(条码资源系统)
- PhpStorm提高效率的使用方法及设置
- BZOJ1012最大数maxnumber
- Unity Shader入门介绍