列号为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>


没找到合并行的方法,继续学习...

更多相关文章

  1. Android关机重启实现
  2. Android(安卓)学习笔记
  3. GridView示例2(自动增长)
  4. Android应用程序的debug属性
  5. Android(安卓)GridView 使用示例
  6. Android:Service
  7. Android(安卓)Studio 官方示例源码地址
  8. android edittext 隐藏键盘
  9. android 权限示例

随机推荐

  1. TF-IDF原理和使用以及算法详解
  2. R方和线性回归拟合优度
  3. 基于数据挖掘SVM模型的pre-incident事故
  4. 淘宝url中的spm编码是怎么生成的呢?
  5. R方和调整R方
  6. 数据岗位现状调查报告
  7. 网站url后带spm参数的作用
  8. 用SAS进行泊松,零膨胀泊松和有限混合Poiss
  9. 网站301跳转问题的探讨和用法,网站做301跳
  10. 维度规约(降维)算法在WEKA中应用