ht_dialog_regist.xml 7.1 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/ht_title_style">

        <TextView
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:text="注册"
            style="@style/ht_title_text_style" />

        <ImageView
            android:id="@+id/ht_close_img"
            style="@style/ht_close_style"
            android:layout_width="18dp"
            android:layout_height="18dp" />
    </RelativeLayout>

    <ScrollView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        style="@style/ht_content_style"
        android:scrollbars="none">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_marginLeft="15dp"
            android:layout_marginRight="15dp"
            android:layout_height="match_parent"
            android:orientation="vertical">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_marginTop="15dp"
                android:background="@drawable/ht_edittext_bg"
                android:focusable="true"
                android:focusableInTouchMode="true"
                android:gravity="center"
                android:orientation="horizontal">

                <ImageView
                    android:layout_width="20dp"
                    android:layout_height="20dp"
                    android:layout_margin="2dp"
                    android:visibility="gone"
                    android:background="@drawable/ht_ic_account" />


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

                    <com.ht.sdk.view.CustomEditText
                        android:id="@+id/ht_regist_account_et"
                        android:layout_width="0dp"
                        style="@style/ht_edittext_style"
                        android:layout_height="match_parent"
                        android:layout_weight="1"
                        android:background="@null"
                        android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_./\|+-@#$%^*"
                        android:hint="输入账号"
                        android:nextFocusDown="@+id/ht_regist_pwd_et" />

                    <ImageView
                        android:id="@+id/ht_regist_reflsh_account"
                        android:layout_width="16dp"
                        android:layout_height="16dp"
                        android:layout_marginLeft="8dp"
                        android:layout_marginRight="5dp"
                        android:background="@drawable/ht_ic_refurbish" />
                </LinearLayout>
            </LinearLayout>

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_marginTop="10dp"
                android:background="@drawable/ht_edittext_bg"
                android:focusable="true"
                android:focusableInTouchMode="true"
                android:gravity="center"
                android:orientation="horizontal">

                <ImageView
                    android:layout_width="20dp"
                    android:layout_height="20dp"
                    android:layout_margin="2dp"
                    android:visibility="gone"
                    android:background="@drawable/ht_ic_password" />


                <com.ht.sdk.view.CustomEditText
                    android:id="@+id/ht_regist_pwd_et"
                    style="@style/ht_edittext_style"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:background="@null"
                    android:digits="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_./\|+-@#$%^*"
                    android:hint="输入密码"
                    android:inputType="textPassword" />
            </LinearLayout>

            <Button
                android:id="@+id/ht_regist_confirm_btn"
                style="@style/ht_button_style"
                android:layout_width="match_parent"
                android:layout_height="40dp"
                android:layout_marginTop="10dp"
                android:layout_marginBottom="10dp"
                android:text="立即注册" />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="10dp"
                android:layout_marginBottom="2dp"
                android:gravity="center_vertical"
                android:orientation="horizontal">

                <CheckBox
                    android:id="@+id/ht_register_agreement_cb"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_alignParentLeft="true"
                    android:layout_gravity="center"
                    android:button="@null"
                    android:background="@null"
                    android:checked="true"
                    android:drawableLeft="@drawable/ht_checkbox_selector"
                    android:gravity="left"
                    android:text="我已阅读并同意"
                    android:drawablePadding="1dp"
                    android:paddingTop="1dp"
                    android:textSize="12sp" />

                <TextView
                    android:id="@+id/ht_register_agreement_tv"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:autoLink="web"
                    android:text="用户协议"
                    android:textColor="@color/ht_main_color"
                    android:textSize="12sp" />

                <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:text="和"
                    android:textSize="12sp" />

                <TextView
                    android:id="@+id/ht_register_privacy_tv"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center_vertical"
                    android:autoLink="web"
                    android:text="隐私条款"
                    android:textColor="@color/ht_main_color"
                    android:textSize="12sp" />
            </LinearLayout>
        </LinearLayout>
    </ScrollView>
</LinearLayout>