You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
190 lines
7.0 KiB
190 lines
7.0 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<android.support.constraint.ConstraintLayout 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"
|
|
tools:layout_editor_absoluteY="81dp"
|
|
android:background="@drawable/allbackground">
|
|
|
|
<ImageView
|
|
android:id="@+id/reg_head"
|
|
android:layout_width="60dp"
|
|
android:layout_height="60dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:src="@mipmap/choosehead"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvShowDialog"
|
|
android:layout_width="254dp"
|
|
android:layout_height="33dp"
|
|
android:layout_alignParentTop="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:background="#ceefecec"
|
|
android:gravity="center"
|
|
android:text="出生年月日"
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
android:textSize="17dp"
|
|
app:layout_constraintEnd_toEndOf="@+id/editPwd"
|
|
app:layout_constraintStart_toStartOf="@+id/editPwd"
|
|
tools:layout_editor_absoluteY="182dp"
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
<EditText
|
|
android:id="@+id/editPhone"
|
|
style="@style/textstyle"
|
|
android:layout_width="250dp"
|
|
android:background="#ceefecec"
|
|
android:hint="手机号"
|
|
android:inputType="number"
|
|
android:lines="1"
|
|
android:maxLength="11"
|
|
android:singleLine="true"
|
|
app:layout_constraintEnd_toEndOf="@+id/tableRow"
|
|
app:layout_constraintStart_toStartOf="@+id/tableRow"
|
|
tools:ignore="MissingConstraints"
|
|
tools:layout_editor_absoluteY="270dp" />
|
|
<!-- input password -->
|
|
<EditText
|
|
android:id="@+id/editPwd"
|
|
style="@style/textstyle"
|
|
android:layout_width="250dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="#ceefecec"
|
|
android:hint="密码"
|
|
android:lines="1"
|
|
android:maxLength="16"
|
|
android:password="true"
|
|
android:singleLine="true"
|
|
app:layout_constraintBottom_toTopOf="@+id/tvShowDialog"
|
|
app:layout_constraintEnd_toEndOf="@+id/editName"
|
|
app:layout_constraintStart_toStartOf="@+id/editName"
|
|
app:layout_constraintTop_toBottomOf="@+id/editName"
|
|
tools:ignore="MissingConstraints" />
|
|
<!-- the regist button -->
|
|
<Button
|
|
android:id="@+id/btnRegist"
|
|
style="@style/textstyle"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="50dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="#e137b7b5"
|
|
android:onClick="OnMyRegistClick"
|
|
android:text="@string/regist"
|
|
android:textColor="#fff"
|
|
android:textSize="20dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/btnGetcord"
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
<EditText
|
|
android:id="@+id/editCode"
|
|
android:layout_width="115dp"
|
|
android:layout_height="45dp"
|
|
android:layout_below="@+id/editPhone"
|
|
android:layout_alignStart="@+id/btnRegist"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:background="#ceefecec"
|
|
android:ems="10"
|
|
android:hint="请输入验证码"
|
|
android:inputType="textPersonName"
|
|
app:layout_constraintEnd_toStartOf="@+id/btnGetcord"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintStart_toStartOf="@+id/editPhone"
|
|
tools:ignore="MissingConstraints"
|
|
tools:layout_editor_absoluteY="345dp"
|
|
android:layout_alignLeft="@+id/btnRegist" />
|
|
|
|
<Button
|
|
android:id="@+id/btnGetcord"
|
|
android:layout_width="100dp"
|
|
android:layout_height="44dp"
|
|
android:layout_alignBaseline="@+id/editCode"
|
|
android:layout_alignEnd="@+id/editPhone"
|
|
android:layout_alignRight="@+id/editPhone"
|
|
android:layout_alignBottom="@+id/editCode"
|
|
android:background="@color/colorPrimary"
|
|
android:text="获取验证码"
|
|
app:layout_constraintEnd_toEndOf="@+id/editPhone"
|
|
tools:ignore="MissingConstraints"
|
|
tools:layout_editor_absoluteY="346dp" />
|
|
|
|
<EditText
|
|
android:id="@+id/editName"
|
|
android:layout_width="250dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="#ceefecec"
|
|
android:ems="10"
|
|
android:gravity="center"
|
|
android:hint="用户名"
|
|
android:inputType="textPersonName"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/reg_head"
|
|
tools:ignore="MissingConstraints" />
|
|
|
|
<TableRow
|
|
android:id="@+id/tableRow"
|
|
android:layout_width="250dp"
|
|
android:layout_height="39dp"
|
|
android:background="#ceefecec"
|
|
app:layout_constraintEnd_toEndOf="@+id/tvShowDialog"
|
|
app:layout_constraintStart_toStartOf="@+id/tvShowDialog"
|
|
tools:layout_editor_absoluteY="223dp"
|
|
tools:ignore="MissingConstraints">
|
|
|
|
<TextView
|
|
android:layout_width="91dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="性别:"
|
|
android:textColor="#000"
|
|
android:textSize="17dp" />
|
|
|
|
<RadioGroup
|
|
android:id="@+id/rg"
|
|
android:layout_width="225dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/male"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="男" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/famle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true"
|
|
android:text="女" />
|
|
</RadioGroup>
|
|
</TableRow>
|
|
|
|
|
|
|
|
|
|
</android.support.constraint.ConstraintLayout> |