Измените высоту TableLayout
на fill_parent
, используя android:layout_height="fill_parent"
Измените высоту каждого TableRow
на 0px, используя android:layout_height="0px"
и установите вес каждого1, используя android:layout_weight="1"
Наконец, не забудьте установить высоту Button
на fill_parent
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout android:id="@+id/TableLayout01" android:stretchColumns="*"
android:layout_height="fill_parent" android:layout_width="fill_parent"
android:layout_centerInParent="true" >
<TableRow android:id="@+id/TableRow01" android:layout_width="fill_parent"
android:layout_height="0px" android:layout_weight="1" >
<Button android:layout_margin="5dp" android:layout_weight="1"
android:layout_height="fill_parent" android:layout_width="fill_parent"
android:text="Download1" android:textColor="#EDFF99"
android:textStyle="bold" />
<Button android:layout_weight="1"
android:layout_margin="5dp" android:layout_height="fill_parent"
android:layout_width="fill_parent" android:text="Download2"
android:textColor="#EDFF99" android:textStyle="bold" />
</TableRow>
<TableRow android:layout_width="fill_parent"
android:layout_height="0px" android:layout_weight="1" >
<Button android:layout_weight="1"
android:layout_margin="5dp" android:layout_height="fill_parent"
android:layout_width="fill_parent" android:text="Upload1"
android:textColor="#EDFF99" android:textStyle="bold"/>
<Button android:layout_margin="5dp" android:layout_weight="1"
android:layout_height="fill_parent" android:layout_width="fill_parent"
android:text="Upload2" android:textColor="#EDFF99" android:textStyle="bold"/>
</TableRow>
</TableLayout>
</RelativeLayout>