表格布局:
以行列的形式来管理子控件

<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content" >

<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="表头" />

<TableRow android:gravity="center" >

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="第0列" >
</TextView>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="第1列" >
</TextView>
</TableRow>

<TableRow android:gravity="center" >

<Button
android:id="@+id/btn1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="按钮1" />

<Button
android:id="@+id/btn2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="按钮2" />
</TableRow>
</TableLayout>

更多相关文章

  1. android 自定义控件属性
  2. Android图表控件MPAndroidChart——曲线图LineChart(多条曲线)动态
  3. android UI开发及常用控件
  4. Android中 ToggleButton【状态切换按钮】简介
  5. Android图表控件MPAndroidChart——曲线图LineChart的使用(多条曲
  6. 控件的android:layout_alignParentTop属性找不到的原因
  7. Android UI基础——SeekBar&RatingBar控件
  8. android 控件位置常用布局

随机推荐

  1. android中build.gradle文件简单说明
  2. 使用BleLib的轻松搞定Android低功耗蓝牙B
  3. Android(安卓)Studio制作简易计算器源代
  4. Android(安卓)系统服务的两种注册方式
  5. Android软键盘挡住输入框的问题及解决方
  6. 说说在 Android(安卓)中如何实现记住密码
  7. android全屏去掉title栏的多种实现方法
  8. Android(安卓)pm命令详解
  9. android 使用系统照相程序照相并存储、显
  10. Android(安卓)开发基础