<?xml version="1.0" encoding="utf-8"?>
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:focusable="true"
|
android:focusableInTouchMode="true"
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_1"
|
android:textSize="20sp"
|
android:textColor="@color/textColor"
|
android:textStyle="bold"
|
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
android:layout_margin="30dp"
|
android:text="注册账户"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_2"
|
android:text="请输入手机号"
|
android:textColor="@color/textColor99"
|
android:textSize="14sp"
|
app:layout_constraintTop_toBottomOf="@id/tv_1"
|
app:layout_constraintStart_toStartOf="@id/tv_1"
|
android:layout_marginTop="12dp"/>
|
|
<EditText
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:id="@+id/et_phone"
|
app:layout_constraintTop_toBottomOf="@id/tv_2"
|
android:layout_marginTop="30dp"
|
app:layout_constraintStart_toEndOf="@id/tv_country"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginStart="14dp"
|
android:layout_marginEnd="30dp"
|
android:hint="请输入手机号"
|
android:inputType="number"
|
android:background="@null"
|
android:paddingVertical="15dp"
|
android:textSize="14sp"
|
android:textColor="@color/textColor"
|
android:maxLength="11"/>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_country"
|
app:layout_constraintBaseline_toBaselineOf="@id/et_phone"
|
app:layout_constraintStart_toStartOf="@id/tv_1"
|
android:text="+86"
|
android:textColor="@color/textColor"
|
android:drawablePadding="2dp"
|
android:textSize="16sp"/>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toBottomOf="@id/et_phone"
|
android:layout_marginHorizontal="30dp"
|
android:layout_marginTop="5dp"/>
|
|
<EditText
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:id="@+id/et_code"
|
android:paddingVertical="15dp"
|
android:textSize="14sp"
|
android:textColor="@color/textColor"
|
app:layout_constraintTop_toBottomOf="@id/et_phone"
|
android:layout_marginTop="16dp"
|
android:layout_marginHorizontal="30dp"
|
android:background="@null"
|
android:hint="请填写验证码"
|
android:inputType="number"
|
android:maxLength="6"/>
|
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toBottomOf="@id/et_code"
|
android:layout_marginHorizontal="30dp"
|
android:layout_marginTop="5dp"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="0dp"
|
android:id="@+id/tv_code"
|
app:layout_constraintBaseline_toBaselineOf="@id/et_code"
|
app:layout_constraintEnd_toEndOf="@id/et_code"
|
android:paddingVertical="12dp"
|
android:textSize="14sp"
|
android:text="获取验证码"
|
android:textStyle="bold"
|
android:textColor="@color/selector_grey_main_enable"/>
|
<EditText
|
android:id="@+id/et_pwd"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="16dp"
|
android:layout_marginHorizontal="30dp"
|
android:background="@null"
|
android:paddingVertical="15dp"
|
android:textSize="14sp"
|
android:textColor="@color/textColor"
|
android:hint="请填写密码"
|
android:inputType="textPassword"
|
android:maxLength="20"
|
app:layout_constraintTop_toBottomOf="@id/et_code" />
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toBottomOf="@id/et_pwd"
|
android:layout_marginHorizontal="30dp"
|
android:layout_marginTop="5dp"/>
|
<EditText
|
android:id="@+id/et_pwd_2"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="16dp"
|
android:layout_marginHorizontal="30dp"
|
android:background="@null"
|
android:paddingVertical="15dp"
|
android:textSize="14sp"
|
android:textColor="@color/textColor"
|
android:hint="请填写确认密码"
|
android:inputType="textPassword"
|
android:maxLength="20"
|
app:layout_constraintTop_toBottomOf="@id/et_pwd" />
|
<View
|
android:layout_width="match_parent"
|
android:layout_height="1px"
|
android:background="@color/dividing_line_color"
|
app:layout_constraintTop_toBottomOf="@id/et_pwd_2"
|
android:layout_marginHorizontal="30dp"
|
android:layout_marginTop="5dp"/>
|
|
|
<CheckBox
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
app:layout_constraintStart_toStartOf="parent"
|
android:layout_marginStart="27dp"
|
app:layout_constraintTop_toBottomOf="@id/et_pwd_2"
|
android:layout_marginTop="16dp"
|
android:background="@null"
|
android:text="我已阅读并同意"
|
android:textSize="12sp"
|
android:padding="2dp"
|
android:button="@drawable/selector_check_radio"
|
android:textColor="@color/textColor"
|
android:id="@+id/cb_rule"/>
|
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_privacy_rule"
|
android:text="@string/user_privacy_rule"
|
app:layout_constraintBaseline_toBaselineOf="@id/cb_rule"
|
app:layout_constraintStart_toEndOf="@id/tv_user_rule"
|
android:textSize="12sp"
|
android:paddingVertical="4dp"
|
android:textStyle="bold"
|
android:textColor="@color/colorPrimary"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_user_rule"
|
android:text="@string/user_register_rule"
|
app:layout_constraintBaseline_toBaselineOf="@id/cb_rule"
|
app:layout_constraintStart_toEndOf="@id/cb_rule"
|
android:textSize="12sp"
|
android:paddingVertical="4dp"
|
android:textStyle="bold"
|
android:textColor="@color/colorPrimary"/>
|
|
<TextView
|
android:id="@+id/tv_action"
|
style="@style/style_btn_action"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="30dp"
|
android:layout_marginTop="53dp"
|
android:text="注册"
|
android:layout_marginBottom="50dp"
|
app:layout_constraintTop_toBottomOf="@id/tv_privacy_rule"/>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|