123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400 |
- <?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/color_bg"
- 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:orientation="vertical"
- android:visibility="@{vm.type==1?View.VISIBLE:View.GONE}"
- tools:visibility="gone">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="43dp"
- android:layout_marginTop="12dp"
- android:background="@color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingStart="35dp"
- android:paddingEnd="@dimen/dp_14"
- android:visibility="@{vm.isShow?View.VISIBLE :View.GONE}">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="18dp"
- android:text="原密码"
- android:textColor="@color/text_title"
- android:textSize="14sp" />
- <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:textColor="@color/text_title"
- android:textColorHint="#979899"
- android:textSize="@dimen/sp_14" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:background="#F3F4F5"
- android:visibility="@{vm.isShow?View.VISIBLE :View.GONE}" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="43dp"
- android:background="@color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingStart="35dp"
- android:paddingEnd="@dimen/dp_14">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="18dp"
- android:text="原密码"
- android:textColor="@color/text_title"
- android:textSize="14sp" />
- <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:textColor="@color/text_title"
- android:textColorHint="#979899"
- android:textSize="@dimen/sp_14" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:background="#F3F4F5" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="43dp"
- android:background="@color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingStart="35dp"
- android:paddingEnd="@dimen/dp_14">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="18dp"
- android:text="原密码"
- android:textColor="@color/text_title"
- android:textSize="14sp" />
- <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:textColor="@color/text_title"
- android:textColorHint="#979899"
- android:textSize="@dimen/sp_14" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1">
- </View>
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginTop="13dp"
- android:layout_marginEnd="@dimen/dp_16"
- android:onClick="@{v->vm.toSubmit()}">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="106dp"
- android:src="@drawable/ic_details_grab" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="@string/submit"
- android:textColor="@color/white"
- android:textSize="16sp">
- </TextView>
- </FrameLayout>
- </LinearLayout>
- <!-- 支付密码-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:visibility="@{vm.type==2?View.VISIBLE:View.GONE}"
- tools:visibility="gone">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="35dp"
- android:layout_marginTop="25dp"
- android:layout_marginEnd="35dp"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:visibility="@{vm.isPayShow?View.VISIBLE :View.GONE}">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="原支付密码:"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_14">
- </TextView>
- <com.quansu.heifengwuliu.view.PasswordView
- android:id="@+id/ppet_old_password"
- android:layout_width="match_parent"
- android:layout_height="45dp"
- app:cipherEnable="true"
- app:passwordLength="6"
- app:smode="rect">
- </com.quansu.heifengwuliu.view.PasswordView>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="35dp"
- android:layout_marginTop="25dp"
- android:layout_marginEnd="35dp"
- android:gravity="center_vertical"
- android:orientation="horizontal">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="新支付密码:"
- android:textColor="@color/text_title"
- android:textSize="@dimen/sp_14">
- </TextView>
- <com.quansu.heifengwuliu.view.PasswordView
- android:id="@+id/ppet_new_password"
- android:layout_width="match_parent"
- android:layout_height="45dp"
- app:cipherEnable="true"
- app:passwordLength="6"
- app:smode="rect">
- </com.quansu.heifengwuliu.view.PasswordView>
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1">
- </View>
- <FrameLayout
- android:id="@+id/fl_pay_submit"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginTop="13dp"
- android:layout_marginEnd="@dimen/dp_16">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="106dp"
- android:src="@drawable/ic_details_grab" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="@string/submit"
- android:textColor="@color/white"
- android:textSize="16sp">
- </TextView>
- </FrameLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/color_bg"
- android:orientation="vertical"
- android:visibility="@{vm.type==3?View.VISIBLE:View.GONE}">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="44dp"
- android:layout_marginTop="12dp"
- android:background="@color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingStart="22dp"
- android:paddingEnd="17dp">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="个人头像"
- android:textColor="@color/text_title"
- android:textSize="14sp" />
- <com.qmuiteam.qmui.widget.QMUIRadiusImageView
- android:id="@+id/img_user_avater"
- android:layout_width="34dp"
- android:layout_height="34dp"
- android:src="@drawable/ic_default_avatar"
- app:qmui_border_color="@color/white"
- app:url="@{vm.avatar}"
- android:onClick="@{v->vm.choseImg()}"
- app:qmui_is_circle="true" />
- <ImageView
- style="@style/mine_arrow_right"
- android:layout_marginStart="8dp"
- android:src="@drawable/mine_right" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:background="#EEEFF0" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="44dp"
- android:background="@color/white"
- android:gravity="center_vertical"
- android:orientation="horizontal"
- android:paddingStart="23dp"
- android:paddingEnd="33dp">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="18dp"
- android:text="姓名"
- android:textColor="@color/text_title"
- android:textSize="14sp" />
- <com.ysnows.base.widget.DelEditText
- android:id="@+id/edt_name"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@null"
- android:gravity="right|center_vertical"
- android:hint="请输入姓名"
- android:text="@={vm.name}"
- android:textColor="@color/text_title"
- android:textColorHint="#979899"
- android:textSize="@dimen/sp_14" />
- </LinearLayout>
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="16dp"
- android:layout_marginTop="25dp"
- android:layout_marginEnd="@dimen/dp_16"
- android:onClick="@{v->vm.toSaveInfo()}">
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="106dp"
- android:src="@drawable/ic_details_grab" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center"
- android:text="完成"
- android:textColor="@color/white"
- android:textSize="16sp">
- </TextView>
- </FrameLayout>
- </LinearLayout>
- </LinearLayout>
- </layout>
|