|
@@ -0,0 +1,270 @@
|
|
|
+<?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:binding="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools"
|
|
|
+ tools:ignore="RtlHardcoded">
|
|
|
+
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="viewModel"
|
|
|
+ type="com.hongyegroup.cpt_ewallet.mvvm.PaymentPsdViewModel" />
|
|
|
+
|
|
|
+ <variable
|
|
|
+ name="click"
|
|
|
+ type="com.hongyegroup.cpt_ewallet.ui.PaymentPsdActivity.ClickProxy" />
|
|
|
+
|
|
|
+ <import type="android.text.TextUtils" />
|
|
|
+
|
|
|
+ </data>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.guadou.lib_baselib.view.titlebar.EasyTitleBar
|
|
|
+ android:id="@+id/easy_title_bar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:Easy_title="设置支付密码" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@color/white"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.guadou.lib_baselib.font_text_view.TextViewMedium
|
|
|
+ android:id="@+id/tv_set_psd"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_24dp"
|
|
|
+ android:layout_marginTop="@dimen/d_35dp"
|
|
|
+ android:text="设置支付密码"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/d_22sp" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/d_0.7dp"
|
|
|
+ android:layout_marginLeft="@dimen/d_20dp"
|
|
|
+ android:layout_marginTop="@dimen/d_18dp"
|
|
|
+ android:layout_marginRight="@dimen/d_20dp"
|
|
|
+ android:background="@color/divider_color" />
|
|
|
+
|
|
|
+ <com.guadou.lib_baselib.font_text_view.TextViewRegular
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_25dp"
|
|
|
+ android:layout_marginTop="@dimen/d_20dp"
|
|
|
+ android:text="输入支付密码"
|
|
|
+ android:textColor="#767676"
|
|
|
+ android:textSize="@dimen/d_15sp" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_25dp"
|
|
|
+ android:layout_marginTop="@dimen/d_6dp"
|
|
|
+ android:baselineAligned="false"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/frame_first_code"
|
|
|
+ android:layout_width="@dimen/d_40dp"
|
|
|
+ android:layout_height="@dimen/d_40dp"
|
|
|
+ android:layout_marginTop="@dimen/d_10dp"
|
|
|
+ android:background="@{click.curSelectedIndex>=0?@drawable/white_input_finish:@drawable/white_input_field}"
|
|
|
+ tools:background="@drawable/white_input_field">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_text_first_code"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@android:color/transparent"
|
|
|
+ android:cursorVisible="false"
|
|
|
+ android:gravity="center"
|
|
|
+ android:inputType="number"
|
|
|
+ android:maxLength="1"
|
|
|
+ android:minEms="2"
|
|
|
+ android:text="@{click.et1Code}"
|
|
|
+ android:textColor="@color/profile_red"
|
|
|
+ android:textSize="@dimen/d_23sp"
|
|
|
+ binding:onFocusGet="@{click.onCodeETFocusGet}"
|
|
|
+ binding:typefaceMedium="@{true}" />
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/frame_second_code"
|
|
|
+ android:layout_width="@dimen/d_40dp"
|
|
|
+ android:layout_height="@dimen/d_40dp"
|
|
|
+ android:layout_marginLeft="@dimen/d_6dp"
|
|
|
+ android:layout_marginTop="@dimen/d_10dp"
|
|
|
+ android:background="@{click.curSelectedIndex>=1?@drawable/white_input_finish:@drawable/white_input_field}"
|
|
|
+ tools:background="@drawable/white_input_field">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_text_second_code"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@android:color/transparent"
|
|
|
+ android:cursorVisible="false"
|
|
|
+ android:gravity="center"
|
|
|
+ android:inputType="number"
|
|
|
+ android:maxLength="1"
|
|
|
+ android:minEms="2"
|
|
|
+ android:text="@{click.et2Code}"
|
|
|
+ android:textColor="@color/profile_red"
|
|
|
+ android:textSize="@dimen/d_23sp"
|
|
|
+ binding:onFocusGet="@{click.onCodeETFocusGet}"
|
|
|
+ binding:typefaceMedium="@{true}" />
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/frame_third_code"
|
|
|
+ android:layout_width="@dimen/d_40dp"
|
|
|
+ android:layout_height="@dimen/d_40dp"
|
|
|
+ android:layout_marginLeft="@dimen/d_6dp"
|
|
|
+ android:layout_marginTop="@dimen/d_10dp"
|
|
|
+ android:background="@{click.curSelectedIndex>=2?@drawable/white_input_finish:@drawable/white_input_field}"
|
|
|
+ tools:background="@drawable/white_input_field">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_text_third_code"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@android:color/transparent"
|
|
|
+ android:cursorVisible="false"
|
|
|
+ android:gravity="center"
|
|
|
+ android:inputType="number"
|
|
|
+ android:maxLength="1"
|
|
|
+ android:minEms="2"
|
|
|
+ android:text="@{click.et3Code}"
|
|
|
+ android:textColor="@color/profile_red"
|
|
|
+ android:textSize="@dimen/d_23sp"
|
|
|
+ binding:onFocusGet="@{click.onCodeETFocusGet}"
|
|
|
+ binding:typefaceMedium="@{true}" />
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/frame_fourth_code"
|
|
|
+ android:layout_width="@dimen/d_40dp"
|
|
|
+ android:layout_height="@dimen/d_40dp"
|
|
|
+ android:layout_marginLeft="@dimen/d_6dp"
|
|
|
+ android:layout_marginTop="@dimen/d_10dp"
|
|
|
+ android:background="@{click.curSelectedIndex>=3?@drawable/white_input_finish:@drawable/white_input_field}"
|
|
|
+ tools:background="@drawable/white_input_field">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_text_fourth_code"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@android:color/transparent"
|
|
|
+ android:cursorVisible="false"
|
|
|
+ android:gravity="center"
|
|
|
+ android:inputType="number"
|
|
|
+ android:maxLength="1"
|
|
|
+ android:minEms="2"
|
|
|
+ android:text="@{click.et4Code}"
|
|
|
+ android:textColor="@color/profile_red"
|
|
|
+ android:textSize="@dimen/d_23sp"
|
|
|
+ binding:onFocusGet="@{click.onCodeETFocusGet}"
|
|
|
+ binding:typefaceMedium="@{true}" />
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/frame_fifth_code"
|
|
|
+ android:layout_width="@dimen/d_40dp"
|
|
|
+ android:layout_height="@dimen/d_40dp"
|
|
|
+ android:layout_marginLeft="@dimen/d_6dp"
|
|
|
+ android:layout_marginTop="@dimen/d_10dp"
|
|
|
+ android:layout_marginBottom="@dimen/d_10dp"
|
|
|
+ android:background="@{click.curSelectedIndex>=4?@drawable/white_input_finish:@drawable/white_input_field}"
|
|
|
+ tools:background="@drawable/white_input_field">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_text_fifth_code"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@android:color/transparent"
|
|
|
+ android:cursorVisible="false"
|
|
|
+ android:gravity="center"
|
|
|
+ android:inputType="number"
|
|
|
+ android:maxLength="1"
|
|
|
+ android:minEms="2"
|
|
|
+ android:text="@{click.et5Code}"
|
|
|
+ android:textColor="@color/profile_red"
|
|
|
+ android:textSize="@dimen/d_23sp"
|
|
|
+ binding:onFocusGet="@{click.onCodeETFocusGet}"
|
|
|
+ binding:typefaceMedium="@{true}" />
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:id="@+id/frame_sixth_code"
|
|
|
+ android:layout_width="@dimen/d_40dp"
|
|
|
+ android:layout_height="@dimen/d_40dp"
|
|
|
+ android:layout_marginLeft="@dimen/d_6dp"
|
|
|
+ android:layout_marginTop="@dimen/d_10dp"
|
|
|
+ android:layout_marginBottom="@dimen/d_10dp"
|
|
|
+ android:background="@{click.curSelectedIndex>=5?@drawable/white_input_finish:@drawable/white_input_field}"
|
|
|
+ tools:background="@drawable/white_input_field">
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_text_sixth_code"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:background="@android:color/transparent"
|
|
|
+ android:cursorVisible="false"
|
|
|
+ android:gravity="center"
|
|
|
+ android:inputType="number"
|
|
|
+ android:maxLength="1"
|
|
|
+ android:minEms="2"
|
|
|
+ android:text="@{click.et6Code}"
|
|
|
+ android:textColor="@color/profile_red"
|
|
|
+ android:textSize="@dimen/d_23sp"
|
|
|
+ binding:onFocusGet="@{click.onCodeETFocusGet}"
|
|
|
+ binding:typefaceMedium="@{true}" />
|
|
|
+
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <EditText
|
|
|
+ android:id="@+id/edit_text_hidden"
|
|
|
+ android:layout_width="@dimen/d_1dp"
|
|
|
+ android:layout_height="@dimen/d_1dp"
|
|
|
+ android:layout_gravity="center_horizontal"
|
|
|
+ android:background="@null"
|
|
|
+ android:cursorVisible="false"
|
|
|
+ android:gravity="center_horizontal"
|
|
|
+ android:inputType="number"
|
|
|
+ android:maxLength="6"
|
|
|
+ android:textColor="@color/transparent"
|
|
|
+ binding:onKeyDel="@{click.onKeyDelEvent}"
|
|
|
+ binding:onTextChanged="@{click.onHidenChanged}" />
|
|
|
+
|
|
|
+
|
|
|
+ <com.guadou.lib_baselib.font_text_view.TextViewMedium
|
|
|
+ android:id="@+id/tv_forget_psd"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginLeft="@dimen/d_25dp"
|
|
|
+ android:layout_marginTop="@dimen/d_28dp"
|
|
|
+ android:text="忘记支付密码?"
|
|
|
+ android:textColor="@color/notify_dark_blue"
|
|
|
+ android:textSize="@dimen/d_13sp" />
|
|
|
+
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+</layout>
|