列号为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中一个Activity多个intent-filter的调用方法
  3. GridView示例2(自动增长)
  4. Android模拟SD卡实现方法解析
  5. Android编程实现屏幕自适应方向尺寸与分辨率的方法
  6. Android Studio导入Project的方法
  7. Android使用AudioRecord遇到的问题与解决方法
  8. Android GridView 使用示例
  9. 另类方法屏蔽Android4.03的HOME按键

随机推荐

  1. Android初始ViewRoot和DecorView
  2. 在launcher 2.1上实现2.2的屏幕标记
  3. 卸载SD卡对MediaServer的处理
  4. Android文字图片写入CSV(Base64)并分享
  5. Android(安卓)NDK 编译过程中遇到错误 ex
  6. Drawable(hdpi,ldpi,mdpi)目录的区别
  7. Visual Studio 2015正式发布下载 个人免
  8. Android学习11-----多媒体技术(5) 媒体录
  9. Android(安卓)GridView 滑动条设置一直显
  10. Android中的Intent Filter匹配规则介绍