请教一个android界面排版的问题
界面就是这样的:
现在用的main.xml如下:
<?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 = "wrap_content" android:stretchColumns = "1"> <TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" > <TextView android:text = "@string/number_prefix" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> <EditText android:id = "@+id/EditPrefix" android:inputType = "number" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> </TableRow> <TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" > <TextView android:text = "@string/password" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> <EditText android:id = "@+id/EditPassword" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> </TableRow> <TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" > <TextView android:text = "@string/province" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> <EditText android:id = "@+id/EditProvince" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> </TableRow> <TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" > <TextView android:text = "@string/start_number" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> <EditText android:id = "@+id/EditStart" android:inputType = "number" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> </TableRow> <TableRow android:layout_width="fill_parent" android:layout_height="wrap_content" > <Button android:id = "@+id/Login" android:text = "@string/login" android:layout_width = "wrap_content" android:layout_height = "wrap_content" /> </TableRow> </TableLayout>