activity_new_pwd_layout.xml
3.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?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">
<data>
<variable
name="presenter"
type="com.dayu.usercenter.presenter.newpwd.NewPwdPresenter" />
</data>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:navigationIcon="@drawable/back_btn_normal">
<TextView
android:id="@+id/tv_title"
style="@style/toolbar_title" />
</androidx.appcompat.widget.Toolbar>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="66dp"
android:layout_marginBottom="10dp"
android:layout_marginTop="2dp"
android:background="@color/white"
android:gravity="center_vertical"
android:paddingLeft="15dp"
android:paddingRight="15dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:text="@string/for_your_account"
android:textColor="@color/default_editext_color"
android:textSize="15sp" />
<TextView
android:id="@+id/mobile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/default_text_color"
android:textSize="18sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="@string/set_a_new_pwd"
android:textColor="@color/default_editext_color"
android:textSize="15sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="51dp"
android:layout_marginBottom="20dp"
android:background="@color/white"
android:gravity="center_vertical"
android:paddingLeft="15dp"
android:paddingRight="15dp">
<EditText
android:id="@+id/pwd"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/pwd_tip"
android:inputType="textPassword"
android:background="@null"
android:text="@={presenter.code}"
android:textColor="@color/default_text_color"
android:textSize="15sp" />
<ImageView
android:id="@+id/show_pwd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon_pw_close" />
</LinearLayout>
<TextView
android:id="@+id/next"
android:layout_width="match_parent"
android:layout_height="47dp"
android:layout_marginLeft="15dp"
android:layout_marginRight="15dp"
android:layout_marginTop="20dp"
android:alpha="0.35"
android:background="@drawable/tab_blue_react"
android:gravity="center"
android:onClick="@{()->presenter.ModifyPwd()}"
android:text="@string/comfirm"
android:textColor="@color/white"
android:textSize="16sp" />
</LinearLayout>
</layout>