<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="fill_parent"    android:layout_height="fill_parent"    android:orientation="vertical"     >   <TableLayout android:layout_width="fill_parent"    android:layout_height="wrap_content"android:background="#ff0000"android:stretchColumns="*"//拉伸某列单元格,从0开始, * 表示拉伸所有    >    <TableRow>          <TextView               android:text="column1"            android:background="#00ff00"               android:layout_margin="1dip"  />           <TextView               android:text="column2"              android:background="#00ff00"                android:layout_margin="1dip"  />             <TextView               android:text="column3"             android:background="#00ff00"               android:layout_margin="1dip"  />       </TableRow>      <View        android:layout_height="2dip"         android:background="#F00" />       <TableRow>          <TextView               android:text="column1"               android:background="#00ff00"              android:layout_margin="1dip"  />           <TextView               android:text="column2"               android:gravity="center"            android:layout_span="2"//合并2个单元格android:background="#00ff00"              android:layout_margin="1dip"  />           </TableRow>         </TableLayout>   </LinearLayout>


更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android中activity切换动画的两种实现(附
  2. Android中自定义Adapter
  3. Android运行时配置更改
  4. sdcard
  5. 浅入浅出 Android 安全:第二章 Android Li
  6. 如何把多个Android Project打包成一个APK
  7. Android九环刀之RatingBar之评委请亮分
  8. Android应用程序防止被LMK干掉
  9. 升级Android SDK后ADT找不到adb.exe文件
  10. Android Debug Bridge(adb, Android调试