ht_dialog_reset_pwd.xml 4.2 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>


    <LinearLayout
        android:layout_width="match_parent"
        android:orientation="vertical"
        android:paddingLeft="20dp"
        android:paddingRight="20dp"
        style="@style/ht_content_style"
        android:layout_gravity="center"
        android:gravity="center"
        android:layout_height="match_parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="40dp"
            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_new" />

            <View
                android:layout_width="0.5dp"
                android:background="@drawable/ht_divider"
                android:layout_gravity="center"
                android:layout_height="20dp" />

            <EditText
                android:id="@+id/ht_resetpwd_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"
                android:nextFocusDown="@+id/ht_resetpwd_again_et" />
        </LinearLayout>


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:background="@drawable/ht_edittext_bg"
            android:layout_marginTop="10dp"
            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_new_again" />

            <View
                android:layout_width="0.5dp"
                android:background="@drawable/ht_divider"
                android:layout_gravity="center"
                android:layout_height="20dp" />

            <EditText
                android:id="@+id/ht_resetpwd_again_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:inputType="textPassword" />
        </LinearLayout>

        <Button
            android:id="@+id/ht_reset_pwd_confirm"
            style="@style/ht_button_style"
            android:layout_width="match_parent"
            android:layout_height="40dp"
            android:layout_marginTop="10dp"
            android:text="确认重置" />
    </LinearLayout>
</LinearLayout>