|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | + |
| 3 | + |
| 4 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 5 | + xmlns:tools="http://schemas.android.com/tools" |
| 6 | + android:id="@+id/activity_01" |
| 7 | + android:layout_width="match_parent" |
| 8 | + android:layout_height="match_parent" |
| 9 | + android:orientation="vertical"> |
| 10 | + |
| 11 | + <LinearLayout |
| 12 | + android:id="@+id/regist_username" |
| 13 | + android:layout_width="match_parent" |
| 14 | + android:layout_height="wrap_content" |
| 15 | + |
| 16 | + android:layout_marginLeft="10dp" |
| 17 | + android:layout_marginRight="10dp" |
| 18 | + android:layout_marginTop="22dp" |
| 19 | + android:orientation="horizontal"> |
| 20 | + |
| 21 | + <TextView |
| 22 | + android:layout_width="80dp" |
| 23 | + android:layout_height="wrap_content" |
| 24 | + android:gravity="right" |
| 25 | + android:paddingRight="5dp" |
| 26 | + android:text="用户名:" /> |
| 27 | + |
| 28 | + <EditText |
| 29 | + android:id="@+id/et_name" |
| 30 | + android:layout_width="match_parent" |
| 31 | + android:layout_height="wrap_content" |
| 32 | + android:hint="请输入您的用户名" |
| 33 | + android:inputType="textPersonName" |
| 34 | + android:textSize="14dp" /> |
| 35 | + |
| 36 | + </LinearLayout> |
| 37 | + |
| 38 | + <LinearLayout |
| 39 | + android:id="@+id/regist_password" |
| 40 | + android:layout_width="match_parent" |
| 41 | + android:layout_height="wrap_content" |
| 42 | + android:layout_below="@+id/regist_username" |
| 43 | + |
| 44 | + android:layout_marginLeft="10dp" |
| 45 | + android:layout_marginRight="10dp" |
| 46 | + android:layout_marginTop="5dp" |
| 47 | + android:orientation="horizontal"> |
| 48 | + |
| 49 | + <TextView |
| 50 | + android:layout_width="80dp" |
| 51 | + android:layout_height="wrap_content" |
| 52 | + android:gravity="right" |
| 53 | + android:paddingRight="5dp" |
| 54 | + android:text="密 码:" /> |
| 55 | + |
| 56 | + <EditText |
| 57 | + android:id="@+id/et_password" |
| 58 | + android:layout_width="match_parent" |
| 59 | + android:layout_height="wrap_content" |
| 60 | + android:hint="请输入您的密码" |
| 61 | + android:inputType="textPassword" |
| 62 | + android:textSize="14dp" /> |
| 63 | + |
| 64 | + </LinearLayout> |
| 65 | + |
| 66 | + <RadioGroup |
| 67 | + android:id="@+id/radioGroup" |
| 68 | + android:layout_width="wrap_content" |
| 69 | + android:layout_height="wrap_content" |
| 70 | + android:layout_below="@+id/regist_password" |
| 71 | + android:layout_marginLeft="30dp" |
| 72 | + android:orientation="horizontal" |
| 73 | + android:contentDescription="性别"> |
| 74 | + |
| 75 | + <RadioButton |
| 76 | + android:id="@+id/radioMale" |
| 77 | + android:layout_width="wrap_content" |
| 78 | + android:layout_height="wrap_content" |
| 79 | + android:checked="true" |
| 80 | + android:text="男" /> |
| 81 | + |
| 82 | + <RadioButton |
| 83 | + android:id="@+id/radioFemale" |
| 84 | + android:layout_width="wrap_content" |
| 85 | + android:layout_height="wrap_content" |
| 86 | + android:text="女" /> |
| 87 | + </RadioGroup> |
| 88 | + |
| 89 | + <Button |
| 90 | + android:id="@+id/btn_send" |
| 91 | + android:layout_width="wrap_content" |
| 92 | + android:layout_height="wrap_content" |
| 93 | + android:layout_below="@+id/radioGroup" |
| 94 | + android:layout_centerHorizontal="true" |
| 95 | + android:layout_marginTop="36dp" |
| 96 | + android:text="提交用户信息"/> |
| 97 | + |
| 98 | + |
| 99 | +</RelativeLayout> |
| 100 | + |
0 commit comments