parent
c9ec742878
commit
ebcde260c6
@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="10dp"
|
||||
tools:context=".TeacherRegister">
|
||||
<TextView
|
||||
android:id="@+id/signup_msg"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="注册"
|
||||
android:textSize="25sp"
|
||||
android:layout_margin="25dp"
|
||||
android:layout_centerHorizontal="true"
|
||||
/>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/tdept_id"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tsex_msg"
|
||||
android:layout_marginTop="1dp"
|
||||
android:hint="学院"
|
||||
android:singleLine="true" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/ttitle"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tdept_id"
|
||||
android:layout_marginTop="1dp"
|
||||
android:hint="职称"
|
||||
android:singleLine="true" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/tno"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/signup_msg"
|
||||
android:layout_marginTop="0dp"
|
||||
android:hint="学号" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/tpwd_msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tusername_msg"
|
||||
android:hint="密码"
|
||||
android:inputType="textPassword" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/trpwd_msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tpwd_msg"
|
||||
android:inputType="textPassword"
|
||||
android:hint="确认密码" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tsex_msg"
|
||||
android:layout_width="48dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/trpwd_msg"
|
||||
android:layout_marginTop="13dp"
|
||||
android:text="性别"
|
||||
android:textSize="16dp" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/tusername_msg"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tno"
|
||||
android:layout_marginTop="0dp"
|
||||
android:hint="姓名"
|
||||
android:singleLine="true" />
|
||||
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/trg_sex"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/trpwd_msg"
|
||||
android:layout_toEndOf="@id/tsex_msg"
|
||||
android:layout_toRightOf="@id/tsex_msg"
|
||||
android:orientation="horizontal">
|
||||
<RadioButton
|
||||
android:id="@+id/tman"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="男"/>
|
||||
<RadioButton
|
||||
android:id="@+id/twoman"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="女"/>
|
||||
</RadioGroup>
|
||||
|
||||
<Button
|
||||
android:id="@+id/treg_button"
|
||||
android:layout_width="190dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/ttitle"
|
||||
android:layout_marginTop="0dp"
|
||||
android:text="注册" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/tlogin_button"
|
||||
android:layout_width="190dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/ttitle"
|
||||
android:layout_toRightOf="@+id/treg_button"
|
||||
android:text="登录" />
|
||||
</RelativeLayout>
|
Loading…
Reference in new issue