<?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:weightSum="3" android:orientation="vertical"><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:weightSum="3" android:orientation="horizontal"><LinearLayout android:layout_width="fill_parent"android:layout_weight="1" android:orientation="vertical"android:gravity="center" android:layout_height="fill_parent"><ImageView android:src="@drawable/icon"android:layout_width="wrap_content" android:layout_height="wrap_content" /><TextView android:text="One" android:layout_width="wrap_content"android:layout_height="wrap_content" /></LinearLayout><LinearLayout android:layout_width="fill_parent"android:layout_weight="1" android:orientation="vertical"android:gravity="center" android:layout_height="fill_parent"><ImageView android:src="@drawable/icon"android:layout_width="wrap_content" android:layout_height="wrap_content" /><TextView android:text="Two" android:layout_width="wrap_content"android:layout_height="wrap_content" /></LinearLayout><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:orientation="vertical" android:gravity="center"><ImageView android:src="@drawable/icon"android:layout_width="wrap_content" android:layout_height="wrap_content" /><TextView android:text="Three" android:layout_width="wrap_content"android:layout_height="wrap_content" /></LinearLayout></LinearLayout><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:weightSum="3" android:orientation="horizontal"><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:orientation="vertical" android:gravity="center"><ImageView android:src="@drawable/icon"android:layout_width="wrap_content" android:layout_height="wrap_content" /><TextView android:text="Four" android:layout_width="wrap_content"android:layout_height="wrap_content" /></LinearLayout><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:orientation="vertical" android:gravity="center"><ImageView android:src="@drawable/icon"android:layout_width="wrap_content" android:layout_height="wrap_content" /><TextView android:text="Five" android:layout_width="wrap_content"android:layout_height="wrap_content" /></LinearLayout><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:orientation="vertical" android:gravity="center"><ImageView android:src="@drawable/icon"android:layout_width="wrap_content" android:layout_height="wrap_content" /><TextView android:text="Six" android:layout_width="wrap_content"android:layout_height="wrap_content" /></LinearLayout></LinearLayout><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:weightSum="3" android:orientation="horizontal"><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:orientation="vertical" android:gravity="center"><ImageView android:src="@drawable/icon"android:layout_width="wrap_content" android:layout_height="wrap_content" /><TextView android:text="Seven" android:layout_width="wrap_content"android:layout_height="wrap_content" /></LinearLayout><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:orientation="vertical" android:gravity="center"><ImageView android:src="@drawable/icon"android:layout_width="wrap_content" android:layout_height="wrap_content" /><TextView android:text="Eight" android:layout_width="wrap_content"android:layout_height="wrap_content" /></LinearLayout><LinearLayout android:layout_width="fill_parent"android:layout_height="fill_parent" android:layout_weight="1"android:orientation="vertical" android:gravity="center"><ImageView android:src="@drawable/icon"android:layout_width="wrap_content" android:layout_height="wrap_content" /><TextView android:text="Nine" android:layout_width="wrap_content"android:layout_height="wrap_content" /></LinearLayout></LinearLayout></LinearLayout>

或者

<?xml version="1.0" encoding="utf-8"?><TableLayout xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent" android:layout_height="match_parent"android:weightSum="3"><TableRow android:layout_width="match_parent"android:weightSum="3" android:layout_height="match_parent"android:layout_weight="1"><LinearLayout android:orientation="vertical"android:layout_width="match_parent" android:layout_weight="1"android:gravity="center" android:layout_height="match_parent"><ImageView android:layout_width="wrap_content"android:layout_height="wrap_content" android:src="@drawable/icon" /><TextView android:layout_width="wrap_content"android:layout_height="wrap_content" android:text="One" /></LinearLayout><LinearLayout android:orientation="vertical"android:layout_height="match_parent" android:layout_width="wrap_content"android:layout_weight="1" android:gravity="center"><ImageView android:layout_width="wrap_content"android:layout_height="wrap_content" android:src="@drawable/icon" /><TextView android:layout_width="wrap_content"android:layout_height="wrap_content" android:text="Two" /></LinearLayout><LinearLayout android:orientation="vertical"android:layout_width="match_parent" android:layout_weight="1"android:gravity="center" android:layout_height="match_parent"><ImageView android:layout_width="wrap_content"android:layout_height="wrap_content" android:src="@drawable/icon" /><TextView android:layout_width="wrap_content"android:layout_height="wrap_content" android:text="Three" /></LinearLayout></TableRow><TableRow android:layout_width="match_parent"android:weightSum="3" android:layout_height="match_parent"android:layout_weight="1"><LinearLayout android:orientation="vertical"android:layout_width="match_parent" android:layout_weight="1"android:gravity="center" android:layout_height="match_parent"><ImageView android:layout_width="wrap_content"android:layout_height="wrap_content" android:src="@drawable/icon" /><TextView android:layout_width="wrap_content"android:layout_height="wrap_content" android:text="Four" /></LinearLayout><LinearLayout android:orientation="vertical"android:layout_height="match_parent" android:layout_width="wrap_content"android:layout_weight="1" android:gravity="center"><ImageView android:layout_width="wrap_content"android:layout_height="wrap_content" android:src="@drawable/icon" /><TextView android:layout_width="wrap_content"android:layout_height="wrap_content" android:text="Five" /></LinearLayout><LinearLayout android:orientation="vertical"android:layout_width="match_parent" android:layout_weight="1"android:gravity="center" android:layout_height="match_parent"><ImageView android:layout_width="wrap_content"android:layout_height="wrap_content" android:src="@drawable/icon" /><TextView android:layout_width="wrap_content"android:layout_height="wrap_content" android:text="Six" /></LinearLayout></TableRow><TableRow android:layout_width="match_parent"android:weightSum="3" android:layout_height="match_parent"android:layout_weight="1"><LinearLayout android:orientation="vertical"android:layout_width="match_parent" android:layout_weight="1"android:gravity="center" android:layout_height="match_parent"><ImageView android:layout_width="wrap_content"android:layout_height="wrap_content" android:src="@drawable/icon" /><TextView android:layout_width="wrap_content"android:layout_height="wrap_content" android:text="Seven" /></LinearLayout><LinearLayout android:orientation="vertical"android:layout_width="wrap_content" android:layout_height="match_parent"android:layout_weight="1" android:gravity="center"><ImageView android:layout_width="wrap_content"android:layout_height="wrap_content" android:src="@drawable/icon" /><TextView android:layout_width="wrap_content"android:layout_height="wrap_content" android:text="Eight" /></LinearLayout><LinearLayout android:orientation="vertical"android:layout_width="match_parent" android:layout_weight="1"android:gravity="center" android:layout_height="match_parent"><ImageView android:layout_width="wrap_content"android:layout_height="wrap_content" android:src="@drawable/icon" /><TextView android:layout_width="wrap_content"android:layout_height="wrap_content" android:text="Nine" /></LinearLayout></TableRow></TableLayout>

更多相关文章

  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滚动加载数据
  2. Android彻底退出应用程序
  3. android GPS定位和卫星个数
  4. Android 架构
  5. HTTP 工具类 封装 For android
  6. android 如何拖动控件的实现
  7. android 写入data/data/包名/file/中
  8. android boot
  9. Android 使用Handler模仿流行的AsyncHttp
  10. android googlemap的location报空指针解