在android开发中,经常需要设计登录的界面,可以利用RelativeLayout布局实现,也可以用tableLayout布局实现,下面为大家分享利用tableLayout布局实现的xml文件代码:
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:background="@drawable/ball"
android:gravity="center_vertical"
android:stretchColumns="0,3">
<TableRow android:id="@+id/tableRow1"
android:layout_height="wrap_content"
android:layout_width="wrap_content">
<TextView/>
<TextView android:text="用户名:"
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:tex