Android layout 适用于API 14或更低版本的Android layout_rowWeight

Android layout 适用于API 14或更低版本的Android layout_rowWeight,android-layout,Android Layout,我正在尝试使用更少的代码来做类似的事情 我使用GridLayout完成了这项工作。但是layout\u rowWeight需要API级别21但是我想使用API级别14。 如何在较低的API级别或使用另一个布局进行此操作 <GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_

我正在尝试使用更少的代码来做类似的事情

我使用
GridLayout
完成了这项工作。但是
layout\u rowWeight
需要
API级别21
但是我想使用
API级别14
。 如何在较低的API级别或使用另一个布局进行此操作

<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">


<TextView
    android:id="@+id/textView3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="0"
    android:layout_columnSpan="3"
    android:layout_gravity="fill"
    android:layout_row="0"
    android:layout_rowWeight="3"
    android:text="Large Text"
    android:textAppearance="?android:attr/textAppearanceLarge" />

<TextView
    android:id="@+id/textView4"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="0"
    android:layout_columnSpan="3"
    android:layout_gravity="fill"
    android:layout_row="1"
    android:text="Small Text"
    android:textAppearance="?android:attr/textAppearanceSmall" />

<Button
    android:id="@+id/button3"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="0"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="2"
    android:layout_rowWeight="1"

    android:clickable="false"
    android:text="New Button" />

<Button
    android:id="@+id/button24"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="1"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="3"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button27"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="2"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="3"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button6"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="0"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="4"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button9"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="0"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="3"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button28"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="1"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="4"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button29"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="2"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="4"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button12"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="0"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="5"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button15"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="1"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="2"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button18"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="2"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="2"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button30"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="1"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="5"
    android:layout_rowWeight="1"
    android:text="New Button" />

<Button
    android:id="@+id/button34"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_column="2"
    android:layout_columnWeight="1"
    android:layout_gravity="fill"
    android:layout_row="5"
    android:layout_rowWeight="1"
    android:text="New Button" />