Как создать пустую строку таблицы в TableLayout

У меня следующий макет моего приложения andriod.

<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/ULC Background"
android:stretchColumns="1">
    <!--Below I try to create an 'empty' table to push down the buttons 200 pixels, but it doesn't work, it doesn't affect the layout at all-->
    <TableRow android:id="@+id/tableRow3" android:layout_width="fill_parent" android:layout_height="200dip"></TableRow>
    <TableRow android:layout_height="wrap_content" android:id="@+id/tableRow1" android:layout_width="wrap_content">
        <Button android:text="@string/startButtonText" android:layout_width="wrap_content" android:id="@+id/button1" android:layout_height="wrap_content"></Button>
    </TableRow>
    <TableRow android:layout_height="wrap_content" android:id="@+id/tableRow2" android:layout_width="wrap_content">
        <Button android:text="@string/exitButtonText" android:layout_width="wrap_content" android:id="@+id/button2" android:layout_height="wrap_content"></Button>
    </TableRow>
</TableLayout>

Кнопки выглядят очень странно прямо вверху, я хочу, чтобы они были сдвинуты на 200 пикселей, как я могу это сделать?

Я попытался создать «пустую» строку TableRow, но это не сработало.

0
задан Jimmy Huch 12 August 2011 в 20:24
поделиться