123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?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">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:visibility="@{vm.type==1?View.VISIBLE:View.GONE}"
- android:orientation="vertical">
- <com.qmuiteam.qmui.widget.roundwidget.QMUIRoundLinearLayout
- android:layout_width="match_parent"
- android:layout_height="48dp"
- android:layout_marginStart="35dp"
- android:layout_marginEnd="35dp"
- android:layout_marginTop="25dp"
- android:gravity="center_vertical"
- android:paddingStart="@dimen/dp_8"
- android:paddingEnd="@dimen/dp_14"
- android:visibility="@{vm.isShow?View.VISIBLE :View.GONE}"
- app:qmui_backgroundColor="#F4F3F9"
- app:qmui_borderColor="#F4F3F9"
- app:qmui_borderWidth="@dimen/dp_1"
- app:rv_radius="25dp"
- >
- <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_marginStart="35dp"
- android:layout_marginEnd="35dp"
- android:layout_marginTop="25dp"
- android:gravity="center_vertical"
- android:paddingStart="@dimen/dp_8"
- android:paddingEnd="@dimen/dp_14"
- app:qmui_backgroundColor="#F4F3F9"
- app:qmui_borderColor="#F4F3F9"
- app:qmui_borderWidth="@dimen/dp_1"
- app:rv_radius="25dp"
- >
- <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_marginStart="35dp"
- android:layout_marginEnd="35dp"
- android:layout_marginTop="25dp"
- android:gravity="center_vertical"
- android:paddingStart="@dimen/dp_8"
- android:paddingEnd="@dimen/dp_14"
- app:qmui_backgroundColor="#F4F3F9"
- app:qmui_borderColor="#F4F3F9"
- app:qmui_borderWidth="@dimen/dp_1"
- app:rv_radius="25dp"
- >
- <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_height="0dp"
- android:layout_weight="1">
- </View>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="45dp"
- android:layout_marginLeft="35dp"
- android:layout_marginTop="10dp"
- android:layout_marginRight="35dp"
- android:layout_marginBottom="@dimen/dp_40"
- 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>
- <!-- 支付密码-->
- <LinearLayout
- android:layout_width="match_parent"
- android:orientation="vertical"
- android:visibility="@{vm.type==2?View.VISIBLE:View.GONE}"
- android:layout_height="wrap_content">
- <LinearLayout
- android:layout_width="match_parent"
- android:orientation="horizontal"
- android:layout_marginTop="25dp"
- android:gravity="center_vertical"
- android:layout_marginStart="35dp"
- android:layout_marginEnd="35dp"
- android:layout_height="wrap_content">
- <TextView
- android:layout_width="wrap_content"
- android:textSize="@dimen/sp_15"
- android:textColor="@color/text_title"
- android:text="原支付密码:"
- android:layout_height="wrap_content">
- </TextView>
- <com.quansu.heifengwuliu.view.PasswordView
- android:id="@+id/ppet_old_password"
- android:layout_width="match_parent"
- app:cipherEnable="true"
- app:passwordLength="6"
- app:smode="rect"
- android:layout_height="45dp">
- </com.quansu.heifengwuliu.view.PasswordView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:orientation="horizontal"
- android:layout_marginTop="25dp"
- android:gravity="center_vertical"
- android:layout_marginStart="35dp"
- android:layout_marginEnd="35dp"
- android:layout_height="wrap_content">
- <TextView
- android:layout_width="wrap_content"
- android:textSize="@dimen/sp_15"
- android:textColor="@color/text_title"
- android:text="新支付密码:"
- android:layout_height="wrap_content">
- </TextView>
- <com.quansu.heifengwuliu.view.PasswordView
- android:id="@+id/ppet_new_password"
- android:layout_width="match_parent"
- app:cipherEnable="true"
- app:passwordLength="6"
- app:smode="rect"
- android:layout_height="45dp">
- </com.quansu.heifengwuliu.view.PasswordView>
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1">
- </View>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="45dp"
- android:layout_marginLeft="35dp"
- android:layout_marginTop="10dp"
- android:layout_marginRight="35dp"
- android:layout_marginBottom="@dimen/dp_40"
- android:background="@color/colorPrimary"
- app:cardBackgroundColor="@color/colorPrimary"
- app:cardCornerRadius="22.5dp"
- app:cardElevation="2dp"
- app:cardPreventCornerOverlap="true">
- <Button
- android:id="@+id/btn_pay_submit"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#E17E30"
- android:text="@string/submit"
- android:textColor="@color/white"
- android:textSize="@dimen/sp_16" />
- </androidx.cardview.widget.CardView>
- </LinearLayout>
- </LinearLayout>
- </layout>
|