<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView 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:background="@color/white"
    tools:context=".ui.activity.account.RegisterActivity">

    <LinearLayout
        android:id="@+id/fl_register_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clipToPadding="false"
        android:gravity="center_horizontal"
        android:layoutAnimation="@anim/layout_fall_down"
        android:orientation="vertical"
        android:paddingHorizontal="@dimen/dp_40"
        tools:layoutAnimation="@null">

        <androidx.appcompat.widget.AppCompatTextView
            android:id="@+id/tv_register_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dp_40"
            android:text="@string/register_title"
            android:textColor="@color/black60"
            android:textSize="@dimen/sp_23" />

        <androidx.appcompat.widget.AppCompatTextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dp_20"
            android:text="@string/register_hint"
            android:textColor="@color/black20"
            android:textSize="@dimen/sp_14" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dp_40"
            android:gravity="center_vertical"
            android:orientation="horizontal">

            <FrameLayout
                android:layout_width="0px"
                android:layout_height="wrap_content"
                android:layout_weight="1">

                <com.hjq.custom.widget.view.RegexEditText
                    android:id="@+id/et_register_phone"
                    style="@style/EditTextStyle"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:hint="@string/common_phone_input_hint"
                    android:inputType="phone"
                    android:singleLine="true"
                    app:regexType="mobile" />

                <View
                    style="@style/HorizontalLineStyle"
                    android:layout_gravity="bottom" />
            </FrameLayout>

            <com.hjq.custom.widget.view.CountdownView
                android:id="@+id/cv_register_countdown"
                style="@style/CountdownViewStyle"
                android:layout_marginStart="@dimen/dp_10" />
        </LinearLayout>

        <com.hjq.custom.widget.view.RegexEditText
            android:id="@+id/et_register_code"
            style="@style/EditTextStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dp_20"
            android:hint="@string/common_code_input_hint"
            android:inputType="phone"
            android:maxLength="@integer/sms_code_max_length"
            android:singleLine="true"
            app:regexType="number" />

        <View style="@style/HorizontalLineStyle" />

        <com.hjq.custom.widget.view.PasswordEditText
            android:id="@+id/et_register_password1"
            style="@style/EditTextStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dp_20"
            android:hint="@string/register_password_hint1"
            android:maxLength="@integer/login_password_max_length"
            android:singleLine="true" />

        <View style="@style/HorizontalLineStyle" />

        <com.hjq.custom.widget.view.PasswordEditText
            android:id="@+id/et_register_password2"
            style="@style/EditTextStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/dp_20"
            android:hint="@string/register_password_hint2"
            android:imeOptions="actionDone"
            android:maxLength="@integer/login_password_max_length"
            android:singleLine="true" />

        <View style="@style/HorizontalLineStyle" />

        <com.hjq.custom.widget.view.SubmitButton
            android:id="@+id/btn_register_commit"
            style="@style/ButtonStyle"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginVertical="@dimen/dp_30"
            android:text="@string/register_title" />

    </LinearLayout>

</androidx.core.widget.NestedScrollView>