<span style="font-size:18px;"><?xml version="1.0" encoding="utf-8"?>

<!-- android:columnCount="2"设置列数  android:rowCount="2" 设置行数 -->
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:columnCount="3"
    android:rowCount="3" >

    <!-- android:layout_row="0" 设置第0行 android:layout_column第0列 -->

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_column="0"
        android:layout_row="0"
        android:text="你好" />
    <!-- android:layout_columnSpan="2"合并两列 需要    android:layout_gravity="fill_horizontal" -->
    <!-- 不然看不出效果              *****layout_rowSpan不用写***** -->
    <!-- 如果有元素列写了的位置 另一个元素合并了(rowspan占了它)那么两个元素重叠显示 -->

    <Button
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_column="1"
        android:layout_columnSpan="2"
        android:layout_gravity="fill_horizontal"
        android:layout_row="0"
        android:layout_rowSpan="2"
        android:text="嘿嘿" />



</GridLayout></span>