|
|
@@ -1,141 +1,193 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout
|
|
|
+<FrameLayout
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:orientation="vertical"
|
|
|
- android:padding="20dp">
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@drawable/shape_gray_slight_corner_white_bg"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="20dp">
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="30dp"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="10dp"
|
|
|
- android:src="@drawable/ic_modify_phone" />
|
|
|
-
|
|
|
- <com.core.widget.ClearEditText
|
|
|
- android:id="@+id/modify_password_phone_mobile_et"
|
|
|
- style="@style/register_edittext_style"
|
|
|
- android:hint="手机号"
|
|
|
- android:paddingLeft="10dp"
|
|
|
- android:paddingRight="10dp"
|
|
|
- android:textColor="@color/black" />
|
|
|
- </LinearLayout>
|
|
|
+ android:background="@drawable/shape_gray_slight_corner_white_bg"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="30dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:src="@drawable/ic_modify_phone" />
|
|
|
+
|
|
|
+ <com.core.widget.ClearEditText
|
|
|
+ android:id="@+id/modify_password_phone_mobile_et"
|
|
|
+ style="@style/register_edittext_style"
|
|
|
+ android:hint="手机号"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp"
|
|
|
+ android:textColor="@color/black" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:background="@drawable/shape_gray_slight_corner_white_bg"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="30dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:src="@drawable/ic_verification_code" />
|
|
|
+
|
|
|
+ <com.core.widget.ClearEditText
|
|
|
+ android:id="@+id/modify_password_phone_code_et"
|
|
|
+ style="@style/register_edittext_style"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:hint="短信验证码"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp"
|
|
|
+ android:textColor="@color/black" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="1dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_margin="10dp"
|
|
|
+ android:background="@color/gray" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/modify_password_phone_code_btn"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginRight="10dp"
|
|
|
+ android:text="@string/obtain_verify_code"
|
|
|
+ android:textColor="@color/titleBlue" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="8dp"
|
|
|
- android:background="@drawable/shape_gray_slight_corner_white_bg"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="16dp"
|
|
|
+ android:text="*密码须为8-20字符的英文、数字混合"
|
|
|
+ android:textColor="@color/red"
|
|
|
+ android:textSize="12sp" />
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="30dp"
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="4dp"
|
|
|
+ android:background="@drawable/shape_gray_slight_corner_white_bg"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="30dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:src="@drawable/ic_password_reset" />
|
|
|
+
|
|
|
+ <com.core.widget.ClearEditText
|
|
|
+ android:id="@+id/modify_password_phone_password_et"
|
|
|
+ style="@style/register_edittext_style"
|
|
|
+ android:hint="新密码"
|
|
|
+ android:inputType="textPassword"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp"
|
|
|
+ android:textColor="@color/black" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <com.core.widget.StrengthView
|
|
|
+ android:id="@+id/modify_password_phone_strength_sv"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="10dp"
|
|
|
- android:src="@drawable/ic_verification_code" />
|
|
|
-
|
|
|
- <com.core.widget.ClearEditText
|
|
|
- android:id="@+id/modify_password_phone_code_et"
|
|
|
- style="@style/register_edittext_style"
|
|
|
- android:layout_width="0dp"
|
|
|
- android:layout_weight="1"
|
|
|
- android:hint="短信验证码"
|
|
|
+ android:paddingBottom="10dp"
|
|
|
android:paddingLeft="10dp"
|
|
|
- android:paddingRight="10dp"
|
|
|
- android:textColor="@color/black" />
|
|
|
+ android:paddingTop="10dp"
|
|
|
+ android:visibility="gone" />
|
|
|
|
|
|
- <View
|
|
|
- android:layout_width="1dp"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_margin="10dp"
|
|
|
- android:background="@color/gray" />
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="8dp"
|
|
|
+ android:background="@drawable/shape_gray_slight_corner_white_bg"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="30dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="10dp"
|
|
|
+ android:src="@drawable/ic_password_reset" />
|
|
|
+
|
|
|
+ <com.core.widget.ClearEditText
|
|
|
+ android:id="@+id/modify_password_phone_password_confirm_et"
|
|
|
+ style="@style/register_edittext_style"
|
|
|
+ android:hint="确认密码"
|
|
|
+ android:inputType="textPassword"
|
|
|
+ android:paddingLeft="10dp"
|
|
|
+ android:paddingRight="10dp"
|
|
|
+ android:textColor="@color/black" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/modify_password_phone_code_btn"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:paddingRight="10dp"
|
|
|
- android:text="获取验证码"
|
|
|
- android:textColor="@color/titleBlue" />
|
|
|
+ android:id="@+id/modify_password_phone_confirm_tv"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="42dp"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:background="@drawable/selector_confirm_bg"
|
|
|
+ android:enabled="false"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/app_dialog_ok"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="14sp" />
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="16dp"
|
|
|
- android:text="*密码须为8-20字符的英文、数字混合"
|
|
|
- android:textColor="@color/red"
|
|
|
- android:textSize="12sp" />
|
|
|
-
|
|
|
<LinearLayout
|
|
|
+ android:id="@+id/modify_password_success_ll"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginTop="4dp"
|
|
|
- android:background="@drawable/shape_gray_slight_corner_white_bg"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:visibility="gone">
|
|
|
|
|
|
<ImageView
|
|
|
- android:layout_width="30dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="10dp"
|
|
|
- android:src="@drawable/ic_admin_password" />
|
|
|
+ android:layout_marginTop="80dp"
|
|
|
+ android:src="@drawable/ic_modify_password_success" />
|
|
|
|
|
|
- <com.core.widget.ClearEditText
|
|
|
- android:id="@+id/modify_password_phone_password_et"
|
|
|
- style="@style/register_edittext_style"
|
|
|
- android:hint="新密码"
|
|
|
- android:paddingLeft="10dp"
|
|
|
- android:paddingRight="10dp"
|
|
|
- android:textColor="@color/black" />
|
|
|
- </LinearLayout>
|
|
|
-
|
|
|
- <com.core.widget.StrengthView
|
|
|
- android:id="@+id/modify_password_phone_strength_sv"
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:paddingBottom="8dp"
|
|
|
- android:paddingLeft="10dp"
|
|
|
- android:paddingTop="8dp" />
|
|
|
-
|
|
|
- <LinearLayout
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:background="@drawable/shape_gray_slight_corner_white_bg"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:orientation="horizontal">
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginTop="20dp"
|
|
|
+ android:text="密码重置成功!"
|
|
|
+ android:textSize="20sp"
|
|
|
+ android:textStyle="bold" />
|
|
|
|
|
|
- <ImageView
|
|
|
- android:layout_width="30dp"
|
|
|
+ <TextView
|
|
|
+ android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginLeft="10dp"
|
|
|
- android:src="@drawable/ic_admin_password" />
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:text="*请妥善保管好自己的密码,保障自身利益" />
|
|
|
|
|
|
- <com.core.widget.ClearEditText
|
|
|
- android:id="@+id/modify_password_phone_password_confirm_et"
|
|
|
- style="@style/register_edittext_style"
|
|
|
- android:hint="确认密码"
|
|
|
- android:paddingLeft="10dp"
|
|
|
- android:paddingRight="10dp"
|
|
|
- android:textColor="@color/black" />
|
|
|
- </LinearLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/modify_password_phone_confirm_tv"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="42dp"
|
|
|
- android:layout_marginTop="20dp"
|
|
|
- android:background="@drawable/selector_confirm_bg"
|
|
|
- android:gravity="center"
|
|
|
- android:text="@string/app_dialog_ok"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textSize="14sp" />
|
|
|
-</LinearLayout>
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/modify_password_success_btn"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="42dp"
|
|
|
+ android:layout_margin="30dp"
|
|
|
+ android:background="@drawable/selector_confirm_bg"
|
|
|
+ android:gravity="center"
|
|
|
+ android:text="@string/complete"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="14sp" />
|
|
|
+ </LinearLayout>
|
|
|
+</FrameLayout>
|