|
@@ -0,0 +1,168 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools" >
|
|
|
+
|
|
|
+ <data >
|
|
|
+ <import type="android.view.View" />
|
|
|
+ <import type="com.quansu.heifengwuliu.utils.MUiSwitch" />
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="vm"
|
|
|
+ type="com.quansu.heifengwuliu.vmodel.PasswordVModel" />
|
|
|
+
|
|
|
+ </data >
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:name="com.ysnows.login.activity.LoginActivity"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:fitsSystemWindows="true"
|
|
|
+ android:orientation="vertical"
|
|
|
+ tools:context="com.quansu.heifengwuliu.activity.LoginActivity" >
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:layout_marginLeft="35dp"
|
|
|
+ android:visibility="@{vm.isShow?View.VISIBLE :View.GONE}"
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ android:layout_marginRight="35dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="@dimen/dp_8"
|
|
|
+ android:paddingEnd="@dimen/dp_14"
|
|
|
+ app:rv_radius="25dp"
|
|
|
+ app:qmui_borderWidth="@dimen/dp_1"
|
|
|
+ app:qmui_borderColor="#F4F3F9"
|
|
|
+ app:qmui_backgroundColor="#F4F3F9"
|
|
|
+
|
|
|
+ >
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="35dp"
|
|
|
+ android:layout_height="35dp"
|
|
|
+ android:padding="5dp"
|
|
|
+ android:src="@drawable/ic_login_pwd" />
|
|
|
+
|
|
|
+ <com.ysnows.base.widget.DelEditText
|
|
|
+ android:id="@+id/edt_old_pwd"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@null"
|
|
|
+ android:hint="@string/please_input_old_pwd"
|
|
|
+ android:inputType="textPassword"
|
|
|
+ android:text="@={vm.oldpassWord}"
|
|
|
+ android:textSize="@dimen/sp_15" />
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout >
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:layout_marginLeft="35dp"
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ android:layout_marginRight="35dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="@dimen/dp_8"
|
|
|
+ android:paddingEnd="@dimen/dp_14"
|
|
|
+ app:rv_radius="25dp"
|
|
|
+ app:qmui_borderWidth="@dimen/dp_1"
|
|
|
+ app:qmui_borderColor="#F4F3F9"
|
|
|
+ app:qmui_backgroundColor="#F4F3F9"
|
|
|
+
|
|
|
+ >
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="35dp"
|
|
|
+ android:layout_height="35dp"
|
|
|
+ android:padding="5dp"
|
|
|
+ android:src="@drawable/ic_login_pwd" />
|
|
|
+
|
|
|
+ <com.ysnows.base.widget.DelEditText
|
|
|
+ android:id="@+id/edt_new_pwd"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@null"
|
|
|
+ android:hint="@string/please_input_new_pwd"
|
|
|
+ android:inputType="textPassword"
|
|
|
+ android:text="@={vm.passWord}"
|
|
|
+ android:textSize="@dimen/sp_15" />
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout >
|
|
|
+
|
|
|
+
|
|
|
+ <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="48dp"
|
|
|
+ android:layout_marginLeft="35dp"
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ android:layout_marginRight="35dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="@dimen/dp_8"
|
|
|
+ android:paddingEnd="@dimen/dp_14"
|
|
|
+ app:rv_radius="25dp"
|
|
|
+ app:qmui_borderWidth="@dimen/dp_1"
|
|
|
+ app:qmui_borderColor="#F4F3F9"
|
|
|
+ app:qmui_backgroundColor="#F4F3F9"
|
|
|
+
|
|
|
+ >
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="35dp"
|
|
|
+ android:layout_height="35dp"
|
|
|
+ android:padding="5dp"
|
|
|
+ android:src="@drawable/ic_login_pwd" />
|
|
|
+
|
|
|
+ <com.ysnows.base.widget.DelEditText
|
|
|
+ android:id="@+id/edt_new_pwd_to"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@null"
|
|
|
+ android:hint="@string/please_input_new_pwd_twice"
|
|
|
+ android:inputType="textPassword"
|
|
|
+ android:text="@={vm.passWordTo}"
|
|
|
+ android:textSize="@dimen/sp_15" />
|
|
|
+
|
|
|
+ </com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout >
|
|
|
+
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:layout_height="0dp">
|
|
|
+
|
|
|
+ </View>
|
|
|
+
|
|
|
+ <androidx.cardview.widget.CardView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="45dp"
|
|
|
+ android:layout_marginLeft="35dp"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:layout_marginBottom="@dimen/dp_40"
|
|
|
+ android:layout_marginRight="35dp"
|
|
|
+ android:background="@color/colorPrimary"
|
|
|
+ app:cardBackgroundColor="@color/colorPrimary"
|
|
|
+ app:cardCornerRadius="22.5dp"
|
|
|
+ app:cardElevation="2dp"
|
|
|
+ app:cardPreventCornerOverlap="true" >
|
|
|
+
|
|
|
+ <Button
|
|
|
+ android:id="@+id/btn_submit"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="#E17E30"
|
|
|
+ android:onClick="@{v->vm.toSubmit()}"
|
|
|
+ android:text="@string/submit"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textSize="@dimen/sp_16" />
|
|
|
+
|
|
|
+ </androidx.cardview.widget.CardView >
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout >
|
|
|
+</layout >
|