activity_changepsword.xml 3.44 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ffffffff"
    android:orientation="vertical" >

    <RelativeLayout
        android:id="@+id/title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/login_text_blue"
        android:minHeight="50dp" >

        <ImageView
            android:id="@+id/cancel"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:paddingLeft="20dp"
            android:paddingRight="20dp"
            android:src="@mipmap/title_back" />

        <TextView
            android:id="@+id/menu_title"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:text="@string/string_menu_title"
            android:textColor="@android:color/white"
            android:textSize="22sp" />
    </RelativeLayout>

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@id/title"
        android:background="#ffffffff"
        android:orientation="vertical"
        android:paddingLeft="250dp"
        android:paddingRight="250dp" >

        <RelativeLayout
        android:id="@+id/pwd_rl"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="100dp"
        >
        <EditText
            android:id="@+id/et_oldpassword"
            style="@style/login_register_edit_style"
            android:hint="输入原密码"
            android:inputType="textPassword" />
        <ImageView
        android:id="@+id/iv_pwd_change"
        style="@style/iv_pwd_change_style"
        />
        </RelativeLayout>

        <TextView
            android:id="@+id/oldpassword_error_hint"
            style="@style/registererrhint_style"
            android:layout_below="@id/pwd_rl" />

        <EditText
            android:id="@+id/et_newpassword"
            style="@style/login_register_edit_style"
            android:layout_below="@id/pwd_rl"
            android:layout_marginTop="30dp"
            android:hint="密码为英文和数字组成,最少8位"
            android:inputType="textPassword" />

        <TextView
            android:id="@+id/newpassword_error_hint"
            style="@style/registererrhint_style"
            android:layout_below="@id/et_newpassword" />

        <EditText
            android:id="@+id/et_again_newpassword"
            style="@style/login_register_edit_style"
            android:layout_below="@id/et_newpassword"
            android:layout_marginTop="30dp"
            android:hint="再次输入新密码"
            android:inputType="textPassword" />

        <TextView
            android:id="@+id/again_newpassword_error_hint"
            style="@style/registererrhint_style"
            android:layout_below="@id/et_again_newpassword" />

        <Button
            android:id="@+id/btn_ok"
            style="@style/button_login_register_style"
            android:layout_below="@id/et_again_newpassword"
            android:layout_marginTop="30dp"
            android:text="确  定" />
    </RelativeLayout>

</RelativeLayout>