<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:background="@drawable/bg"
    tools:context=".fragment.RegisterFragment">

    <LinearLayout
        android:id="@+id/rl_register"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/colorPrimaryBlue"
        android:paddingTop="@dimen/top_pind_sp"
        android:orientation="horizontal"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <ImageView
            android:id="@+id/iv_register_finish"
            android:layout_width="wrap_content"
            android:layout_height="45dp"
            android:layout_alignParentLeft="true"
            android:layout_marginLeft="15dp"
            android:src="@drawable/ic_baseline_arrow"
            />

        <TextView
            android:id="@+id/tv_register_title"
            android:layout_width="wrap_content"
            android:layout_height="45dp"
            android:layout_marginLeft="15dp"
            android:layout_toRightOf="@id/iv_find_task"
            android:gravity="center"
            android:text="注册"
            style="@style/toolbar_style"
             />
    </LinearLayout>
    <TextView
        android:id="@+id/register_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="37dp"
        android:layout_marginTop="30dp"
        android:text="Welcome"
        android:textColor="@color/colorWhite"
        android:textSize="30sp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toBottomOf="@id/rl_register" />

    <TextView
        android:id="@+id/register_desc"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="35dp"
        android:text="注册地图寻宝"
        android:textColor="@color/colorWhite"
        android:textSize="35sp"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintTop_toBottomOf="@id/register_title" />

    <TextView
        android:id="@+id/register_phone"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="25dp"
        android:text="手机号"
        style="@style/text_styles"
        app:layout_constraintTop_toBottomOf="@id/register_desc"
        app:layout_constraintLeft_toLeftOf="@id/register_desc"
        />

    <EditText
        android:id="@+id/et_register_phone"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="11位手机号码"
        android:inputType="number"
        android:textColor="@color/white"
        android:layout_marginLeft="35dp"
        style="@style/register_hint_style"
        android:maxLength="11"
        android:textColorHint="@color/colorTransparent"
        android:textCursorDrawable="@drawable/text_color"
        android:theme="@style/MyEditText"
        app:layout_constraintLeft_toLeftOf="@id/register_phone"
        app:layout_constraintTop_toBottomOf="@id/register_phone" />
    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_marginLeft="35dp"
        android:layout_marginRight="50dp"
        android:background="@color/colorHui"
        app:layout_constraintTop_toBottomOf="@id/et_register_phone"
        app:layout_constraintLeft_toLeftOf="@id/et_register_phone"/>
    <TextView
        android:id="@+id/register_note"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:text="短信验证码"
        style="@style/text_styles"
        app:layout_constraintTop_toBottomOf="@id/et_register_phone"
        app:layout_constraintLeft_toLeftOf="@id/et_register_phone"
        />

    <EditText
        android:id="@+id/et_register_note"
        android:layout_width="250dp"
        android:layout_height="wrap_content"
        android:hint="6位短信验证"
        android:textColor="@color/white"
        android:inputType="number"
        style="@style/register_hint_style"
        android:textColorHint="@color/colorTransparent"
        android:textCursorDrawable="@drawable/text_color"
        android:theme="@style/MyEditText"
        app:layout_constraintLeft_toLeftOf="@id/register_note"
        app:layout_constraintTop_toBottomOf="@id/register_note" />

    <View
        android:id="@+id/view3"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_marginLeft="35dp"
        android:layout_marginRight="50dp"
        android:background="@color/colorHui"
        app:layout_constraintTop_toBottomOf="@id/et_register_note"
        app:layout_constraintLeft_toLeftOf="@id/et_register_note"/>
    <TextView
        android:id="@+id/register_get_note"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="获取短信验证码"
        android:textSize="14sp"
        android:textColor="@color/colorWhite"
        app:layout_constraintTop_toTopOf="@id/et_register_note"
        app:layout_constraintBottom_toBottomOf="@id/et_register_note"
        app:layout_constraintRight_toRightOf="@id/view3"
        />
    <TextView
        android:id="@+id/register_referrer"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:text="推荐人"
        style="@style/text_styles"
        app:layout_constraintTop_toBottomOf="@id/et_register_note"
        app:layout_constraintLeft_toLeftOf="@id/et_register_note"
        />

    <EditText
        android:id="@+id/et_register_referrer"
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        android:hint="推荐人(编码/邮箱/手机号)"
        android:textColor="@color/white"
        style="@style/register_hint_style"
        android:textColorHint="@color/colorTransparent"
        android:textCursorDrawable="@drawable/text_color"
        android:theme="@style/MyEditText"
        app:layout_constraintLeft_toLeftOf="@id/register_referrer"
        app:layout_constraintTop_toBottomOf="@id/register_referrer"/>
    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/colorHui"
        android:layout_marginLeft="35dp"
        android:layout_marginRight="50dp"
        app:layout_constraintTop_toBottomOf="@id/et_register_referrer"
        app:layout_constraintLeft_toLeftOf="@id/et_register_referrer"/>
    <TextView
        android:id="@+id/register_paw"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:text="密码"
        style="@style/text_styles"
        app:layout_constraintTop_toBottomOf="@id/et_register_referrer"
        app:layout_constraintLeft_toLeftOf="@id/et_register_referrer"
        />

    <EditText
        android:id="@+id/et_register_paw"
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        android:hint="6-20位密码"
        android:textColor="@color/white"
        android:inputType="textPassword"
        style="@style/register_hint_style"
        android:maxLength="20"
        android:textColorHint="@color/colorTransparent"
        android:textCursorDrawable="@drawable/text_color"
        android:theme="@style/MyEditText"
        app:layout_constraintLeft_toLeftOf="@id/register_paw"
        app:layout_constraintTop_toBottomOf="@id/register_paw"/>
    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/colorHui"
        android:layout_marginLeft="35dp"
        android:layout_marginRight="50dp"
        app:layout_constraintTop_toBottomOf="@id/et_register_paw"
        app:layout_constraintLeft_toLeftOf="@id/et_register_paw"/>
    <TextView
        android:id="@+id/register_confirm_paw"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="20dp"
        android:text="确认密码"
        style="@style/text_styles"
        app:layout_constraintTop_toBottomOf="@id/et_register_paw"
        app:layout_constraintLeft_toLeftOf="@id/et_register_paw"
        />

    <EditText
        android:id="@+id/et_register_confirm_paw"
        android:layout_width="300dp"
        android:layout_height="wrap_content"
        android:hint="请再次输入一遍密码"
        android:maxLength="20"
        android:textColor="@color/white"
        android:inputType="textPassword"
        style="@style/register_hint_style"
        android:textColorHint="@color/colorTransparent"
        android:textCursorDrawable="@drawable/text_color"
        android:theme="@style/MyEditText"
        app:layout_constraintLeft_toLeftOf="@id/register_confirm_paw"
        app:layout_constraintTop_toBottomOf="@id/register_confirm_paw"/>
    <View
        android:id="@+id/view_paw"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="@color/colorHui"
        android:layout_marginLeft="35dp"
        android:layout_marginRight="50dp"
        app:layout_constraintTop_toBottomOf="@id/et_register_confirm_paw"
        app:layout_constraintLeft_toLeftOf="@id/et_register_confirm_paw"/>

    <CheckBox
        android:id="@+id/iv_register_check"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="5dp"
        android:buttonTint="@color/white"
        app:layout_constraintTop_toBottomOf="@id/et_register_confirm_paw"
        app:layout_constraintLeft_toLeftOf="@id/et_register_confirm_paw" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="免责声明"
        android:textColor="@color/colorWhite"
        app:layout_constraintTop_toTopOf="@id/iv_register_check"
        app:layout_constraintLeft_toRightOf="@id/iv_register_check"
        app:layout_constraintBottom_toBottomOf="@id/iv_register_check"
        android:layout_marginLeft="2dp"/>
    <TextView
        android:id="@+id/have_go_login"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="已有账号,去登录"
        android:textColor="@color/colorWhite"
        app:layout_constraintTop_toTopOf="@id/iv_register_check"
        app:layout_constraintRight_toRightOf="@id/view_paw"
        app:layout_constraintBottom_toBottomOf="@id/iv_register_check"/>
    <Button
        android:id="@+id/btn_register"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_marginTop="20dp"
        android:gravity="center"
        style="@style/login_style"
        android:text="注册"
        android:layout_marginLeft="35dp"
        android:layout_marginRight="35dp"
        app:layout_constraintLeft_toLeftOf="@id/iv_register_check"
        app:layout_constraintTop_toBottomOf="@id/iv_register_check"/>

</androidx.constraintlayout.widget.ConstraintLayout>