<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="300dp"
    android:layout_height="350dp"
    android:background="@drawable/mch_dialog_20dp_white"
    android:orientation="vertical">

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_gravity="center"
                android:gravity="center"
                android:orientation="horizontal">

                <RelativeLayout
                    android:layout_width="match_parent"
                    android:layout_height="50dp">

                    <RelativeLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_centerVertical="true"
                        android:visibility="visible">

                        <TextView
                            android:id="@+id/mch_email_change_normal"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_alignParentStart="true"
                            android:layout_marginStart="20dp"
                            android:text="账号"
                            android:textStyle="bold"
                            android:textColor="#000000"
                            android:textSize="14sp" />

                        <View
                            android:id="@+id/mch_email_selected_line"
                            android:layout_width="wrap_content"
                            android:layout_height="2dp"
                            android:layout_below="@+id/mch_email_change_normal"
                            android:layout_alignStart="@+id/mch_email_change_normal"
                            android:layout_alignEnd="@+id/mch_email_change_normal"
                            android:background="@color/mch_yanse"
                            android:visibility="gone"/>

                        <TextView
                            android:id="@+id/mch_account_change_normal"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginStart="28dp"
                            android:layout_toEndOf="@+id/mch_email_change_normal"
                            android:text="手机"
                            android:textStyle="bold"
                            android:textColor="#999999"
                            android:textSize="14sp" />

                        <View
                            android:id="@+id/mch_account_selected_line"
                            android:layout_width="wrap_content"
                            android:layout_height="2dp"
                            android:layout_below="@+id/mch_account_change_normal"
                            android:layout_alignStart="@+id/mch_account_change_normal"
                            android:layout_alignEnd="@+id/mch_account_change_normal"
                            android:background="@color/mch_yanse"
                            android:visibility="gone"/>

                        <TextView
                            android:id="@+id/mch_phone_change_selected"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_marginStart="28dp"
                            android:layout_toEndOf="@+id/mch_account_change_normal"
                            android:text="邮箱"
                            android:textStyle="bold"
                            android:textColor="#999999"
                            android:textSize="14sp" />

                        <View
                            android:id="@+id/mch_phone_selected_line"
                            android:layout_width="wrap_content"
                            android:layout_height="2dp"
                            android:layout_below="@+id/mch_phone_change_selected"
                            android:layout_alignStart="@+id/mch_phone_change_selected"
                            android:layout_alignEnd="@+id/mch_phone_change_selected"
                            android:background="@color/mch_yanse"
                            android:visibility="gone"/>

                    </RelativeLayout>

                    <ImageView
                        android:id="@+id/mch_img_register_close"
                        android:layout_width="35dp"
                        android:layout_height="35dp"
                        android:layout_alignParentRight="true"
                        android:layout_centerVertical="true"
                        android:layout_marginRight="10dp"
                        android:padding="11dp"
                        android:src="@drawable/mch_close1" />

                </RelativeLayout>

            </LinearLayout>

            <!--  邮箱注册  -->
            <LinearLayout
                android:id="@+id/mch_register_ll_email_change"
                android:layout_width="match_parent"
                android:layout_height="150dp"
                android:orientation="vertical"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:background="@drawable/mch_radius_7_shadow"
                android:visibility="visible">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_marginStart="10dp"
                        android:src="@drawable/mch_reg_email_sign" />

                    <RelativeLayout
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:gravity="center_vertical">

                        <EditText
                            android:id="@+id/edt_mc_platform_login_email"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:layout_alignParentStart="true"
                            android:layout_alignParentTop="true"
                            android:background="@null"
                            android:hint="邮箱"
                            android:imeOptions="flagNoExtractUi"
                            android:paddingStart="10dp"
                            android:paddingEnd="0dp"
                            android:singleLine="true"
                            android:textColor="#333333"
                            android:textColorHint="#999999"
                            android:textSize="12sp">

                            <requestFocus />
                        </EditText>

                        <RelativeLayout
                            android:id="@+id/rl_email_acc_clear"
                            android:layout_width="33dp"
                            android:layout_height="33dp"
                            android:visibility="gone">

                            <ImageView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerInParent="true"
                                android:src="@drawable/mch_circle_clear" />
                        </RelativeLayout>
                    </RelativeLayout>
                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginStart="10dp"
                    android:layout_marginEnd="10dp"
                    android:background="#EFF1F4" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_marginStart="10dp"
                        android:src="@drawable/mch_code_sign" />

                    <RelativeLayout
                        android:layout_width="0dp"
                        android:layout_weight="1"
                        android:layout_height="match_parent"
                        android:gravity="center_vertical">

                        <EditText
                            android:id="@+id/edt_email_sms_code"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:background="@null"
                            android:gravity="center_vertical"
                            android:hint="验证码"
                            android:imeOptions="flagNoExtractUi"
                            android:paddingStart="10dp"
                            android:paddingEnd="0dp"
                            android:inputType="number"
                            android:singleLine="true"
                            android:textColor="#333333"
                            android:textColorHint="#999999"
                            android:textSize="12sp" />

                        <RelativeLayout
                            android:layout_width="33dp"
                            android:layout_height="33dp"
                            android:layout_alignParentEnd="true"
                            android:visibility="gone">

                            <ImageView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerInParent="true"
                                android:src="@drawable/mch_circle_clear" />
                        </RelativeLayout>

                    </RelativeLayout>

                    <TextView
                        android:id="@+id/btn_email_vcode"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:gravity="center"
                        android:layout_marginStart="5dp"
                        android:layout_marginEnd="15dp"
                        android:textSize="12sp"
                        android:textColor="#018FFF"
                        android:text="获取验证码" />
                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginStart="10dp"
                    android:layout_marginEnd="10dp"
                    android:background="#EFF1F4" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_marginStart="10dp"
                        android:src="@drawable/mch_pwd_sign" />

                    <RelativeLayout
                        android:layout_width="0dp"
                        android:layout_weight="1"
                        android:layout_height="wrap_content"
                        android:gravity="center_vertical">

                        <EditText
                            android:id="@+id/edt_register_email_password"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:background="@null"
                            android:gravity="center_vertical"
                            android:hint="6~15位密码(字母或数字)"
                            android:imeOptions="flagNoExtractUi"
                            android:inputType="textPassword"
                            android:maxLength="15"
                            android:paddingStart="10dp"
                            android:paddingEnd="0dp"
                            android:singleLine="true"
                            android:textColor="#333333"
                            android:textColorHint="#999999"
                            android:textSize="12sp" />

                        <RelativeLayout
                            android:layout_width="33dp"
                            android:layout_height="33dp"
                            android:layout_alignParentEnd="true"
                            android:visibility="gone">

                            <ImageView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerInParent="true"
                                android:src="@drawable/mch_circle_clear" />
                        </RelativeLayout>
                    </RelativeLayout>
                </LinearLayout>
            </LinearLayout>

            <!--  手机注册  -->
            <LinearLayout
                android:id="@+id/mch_register_ll_phone_change"
                android:layout_width="match_parent"
                android:layout_height="150dp"
                android:orientation="vertical"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:background="@drawable/mch_radius_7_shadow"
                android:visibility="gone">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_marginStart="10dp"
                        android:src="@drawable/mch_reg_phone_sign" />

                    <RelativeLayout
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:gravity="center_vertical">

                        <EditText
                            android:id="@+id/edt_mc_platform_login_account"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:layout_alignParentStart="true"
                            android:layout_alignParentTop="true"
                            android:background="@null"
                            android:hint="手机"
                            android:imeOptions="flagNoExtractUi"
                            android:paddingStart="10dp"
                            android:paddingEnd="0dp"
                            android:singleLine="true"
                            android:textColor="#333333"
                            android:textColorHint="#999999"
                            android:textSize="12sp">

                            <requestFocus />
                        </EditText>

                        <RelativeLayout
                            android:id="@+id/rl_mch_login_acc_clear"
                            android:layout_width="33dp"
                            android:layout_height="33dp"
                            android:visibility="gone">

                            <ImageView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerInParent="true"
                                android:src="@drawable/mch_circle_clear" />
                        </RelativeLayout>
                    </RelativeLayout>
                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginStart="10dp"
                    android:layout_marginEnd="10dp"
                    android:background="#EFF1F4" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_marginStart="10dp"
                        android:src="@drawable/mch_code_sign" />

                    <RelativeLayout
                        android:layout_width="0dp"
                        android:layout_weight="1"
                        android:layout_height="match_parent"
                        android:gravity="center_vertical">

                        <EditText
                            android:id="@+id/edt_sms_code"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:background="@null"
                            android:gravity="center_vertical"
                            android:hint="验证码"
                            android:imeOptions="flagNoExtractUi"
                            android:paddingStart="10dp"
                            android:paddingEnd="0dp"
                            android:inputType="number"
                            android:singleLine="true"
                            android:textColor="#333333"
                            android:textColorHint="#999999"
                            android:textSize="12sp" />

                        <RelativeLayout
                            android:layout_width="33dp"
                            android:layout_height="33dp"
                            android:layout_alignParentEnd="true"
                            android:visibility="gone">

                            <ImageView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerInParent="true"
                                android:src="@drawable/mch_circle_clear" />
                        </RelativeLayout>

                    </RelativeLayout>

                    <TextView
                        android:id="@+id/btn_vcode"
                        android:layout_width="wrap_content"
                        android:layout_height="match_parent"
                        android:gravity="center"
                        android:layout_marginStart="5dp"
                        android:layout_marginEnd="15dp"
                        android:textSize="12sp"
                        android:textColor="#018FFF"
                        android:text="获取验证码" />
                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginStart="10dp"
                    android:layout_marginEnd="10dp"
                    android:background="#EFF1F4" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_marginStart="10dp"
                        android:src="@drawable/mch_pwd_sign" />

                    <RelativeLayout
                        android:layout_width="0dp"
                        android:layout_weight="1"
                        android:layout_height="wrap_content"
                        android:gravity="center_vertical">

                        <EditText
                            android:id="@+id/edt_register_password"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:background="@null"
                            android:gravity="center_vertical"
                            android:hint="6~15位密码(字母或数字)"
                            android:imeOptions="flagNoExtractUi"
                            android:maxLength="15"
                            android:paddingStart="10dp"
                            android:paddingEnd="0dp"
                            android:inputType="textPassword"
                            android:singleLine="true"
                            android:textColor="#333333"
                            android:textColorHint="#999999"
                            android:textSize="12sp" />

                        <RelativeLayout
                            android:layout_width="33dp"
                            android:layout_height="33dp"
                            android:layout_alignParentEnd="true"
                            android:visibility="gone">

                            <ImageView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerInParent="true"
                                android:src="@drawable/mch_circle_clear" />
                        </RelativeLayout>
                    </RelativeLayout>
                </LinearLayout>
            </LinearLayout>

            <!--  普通注册  -->
            <LinearLayout
                android:visibility="gone"
                android:id="@+id/mch_register_ll_account_change"
                android:layout_width="match_parent"
                android:layout_height="150dp"
                android:gravity="center_vertical"
                android:orientation="vertical"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:background="@drawable/mch_radius_7_shadow">

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_marginStart="10dp"
                        android:src="@drawable/mch_account_sign" />

                    <RelativeLayout
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:gravity="center_vertical">

                        <EditText
                            android:id="@+id/edt_account"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:layout_alignParentStart="true"
                            android:layout_alignParentLeft="true"
                            android:layout_alignParentTop="true"
                            android:background="@null"
                            android:hint="6~15位账号(字母或数字)"
                            android:imeOptions="flagNoExtractUi"
                            android:paddingLeft="10dp"
                            android:singleLine="true"
                            android:textColor="#333333"
                            android:textColorHint="#999999"
                            android:textSize="12sp">

                            <requestFocus />
                        </EditText>

                        <RelativeLayout
                            android:layout_width="33dp"
                            android:layout_height="33dp"
                            android:visibility="gone">

                            <ImageView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerInParent="true"
                                android:src="@drawable/mch_circle_clear" />
                        </RelativeLayout>
                    </RelativeLayout>
                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginStart="10dp"
                    android:layout_marginEnd="10dp"
                    android:background="#EFF1F4" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_marginStart="10dp"
                        android:src="@drawable/mch_pwd_sign" />

                    <RelativeLayout
                        android:layout_width="0dp"
                        android:layout_weight="1"
                        android:layout_height="wrap_content"
                        android:gravity="center_vertical">

                        <EditText
                            android:id="@+id/edt_account_password"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:background="@null"
                            android:gravity="center_vertical"
                            android:hint="6~15位密码(字母或数字)"
                            android:imeOptions="flagNoExtractUi"
                            android:maxLength="15"
                            android:paddingStart="10dp"
                            android:paddingEnd="0dp"
                            android:inputType="textPassword"
                            android:singleLine="true"
                            android:textColor="#333333"
                            android:textColorHint="#999999"
                            android:textSize="12sp" />

                    </RelativeLayout>

                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_marginStart="10dp"
                    android:layout_marginEnd="10dp"
                    android:background="#EFF1F4" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight="1"
                    android:gravity="center_vertical"
                    android:orientation="horizontal">

                    <ImageView
                        android:layout_width="18dp"
                        android:layout_height="18dp"
                        android:layout_marginStart="10dp"
                        android:src="@drawable/mch_pwd_sign" />

                    <RelativeLayout
                        android:layout_width="0dp"
                        android:layout_weight="1"
                        android:layout_height="wrap_content"
                        android:gravity="center_vertical">

                        <EditText
                            android:id="@+id/edt_account_repassword"
                            android:layout_width="match_parent"
                            android:layout_height="match_parent"
                            android:background="@null"
                            android:gravity="center_vertical"
                            android:hint="再次输入密码"
                            android:imeOptions="flagNoExtractUi"
                            android:maxLength="15"
                            android:paddingStart="10dp"
                            android:paddingEnd="0dp"
                            android:inputType="textPassword"
                            android:singleLine="true"
                            android:textColor="#333333"
                            android:textColorHint="#999999"
                            android:textSize="12sp" />

                        <RelativeLayout
                            android:layout_width="33dp"
                            android:layout_height="33dp"
                            android:layout_alignParentEnd="true"
                            android:visibility="gone">

                            <ImageView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:layout_centerInParent="true"
                                android:src="@drawable/mch_circle_clear" />
                        </RelativeLayout>

                    </RelativeLayout>

                </LinearLayout>

            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="25dp"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:gravity="center_vertical"
                android:orientation="horizontal">

                <ImageView
                    android:id="@+id/img_check"
                    android:layout_width="16dp"
                    android:layout_height="16dp"
                    android:layout_marginStart="5dp"
                    android:src="@drawable/mch_register_unselected" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:layout_marginStart="7dp"
                    android:text="阅读并同意"
                    android:textColor="@color/mch_hui"
                    android:textSize="10sp" />

                <TextView
                    android:id="@+id/mch_txt_register_agreement"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="《用户注册协议》"
                    android:textColor="@color/mch_yanse"
                    android:textSize="10sp" />

                <TextView
                    android:id="@+id/mch_txt_register_protoal"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:gravity="center"
                    android:text="《隐私政策》"
                    android:textColor="@color/mch_yanse"
                    android:textSize="10sp" />

            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="50dp"
                android:layout_marginLeft="16dp"
                android:layout_marginRight="16dp"
                android:layout_marginBottom="10dp"
                android:gravity="center">
                <TextView
                    android:id="@+id/btn_register"
                    android:layout_width="match_parent"
                    android:layout_height="35dp"
                    android:gravity="center"
                    android:background="@drawable/mch_btn_gradient"
                    android:text="立即注册"
                    android:textColor="#fff"
                    android:textSize="14sp" />

            </LinearLayout>

            <com.mchsdk.paysdk.customview.MCHAwardList
                android:layout_width="match_parent"
                android:layout_height="95dp"
                android:layout_marginBottom="15dp"
                android:tag="0"
                android:visibility="gone"/>

        </LinearLayout>

    </ScrollView>

</LinearLayout>