lmw
2025-04-24 718f31c92e2029d05260810435a2c70cef6e6ce5
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
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/tv_1"
        android:textSize="20sp"
        android:textColor="@color/textColor"
        android:textStyle="bold"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        android:layout_margin="30dp"
        android:text="设置新的密码"/>
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/tv_2"
        android:text="重置之前的密码,设置新密码"
        android:textColor="@color/textColor99"
        android:textSize="14sp"
        app:layout_constraintTop_toBottomOf="@id/tv_1"
        app:layout_constraintStart_toStartOf="@id/tv_1"
        android:layout_marginTop="12dp"/>
    <EditText
        android:id="@+id/et_pwd"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="30dp"
        android:background="@null"
        android:textSize="14sp"
        android:paddingVertical="20dp"
        android:drawablePadding="11dp"
        android:layout_marginTop="15dp"
        android:digits="@string/etPwdDigits"
        android:hint="请输入密码"
        android:inputType="textPassword"
        android:maxLength="20"
        app:layout_constraintTop_toBottomOf="@id/tv_2" />
 
    <CheckBox
        android:id="@+id/cb_pwd_visible"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="@null"
        app:layout_constraintTop_toTopOf="@id/et_pwd"
        app:layout_constraintBottom_toBottomOf="@id/et_pwd"
        app:layout_constraintEnd_toEndOf="@id/et_pwd"
        android:paddingVertical="10dp"
        android:button="@drawable/selector_pwd_visible"/>
    <View
        android:layout_width="match_parent"
        android:layout_height="1px"
        android:background="@color/dividing_line_color"
        app:layout_constraintTop_toBottomOf="@id/et_pwd"
        android:layout_marginHorizontal="30dp"/>
    <TextView
        android:id="@+id/tv_3"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toBottomOf="@id/et_pwd"
        android:layout_marginHorizontal="30dp"
        android:text="至少8个字符,不能全是字母或数字"
        android:textColor="@color/colorPrimary"
        android:textStyle="bold"
        android:layout_marginTop="15dp"
        android:textSize="14sp"/>
    <TextView
        android:id="@+id/tv_action"
        style="@style/style_btn_action"
        android:layout_width="match_parent"
        app:layout_constraintEnd_toEndOf="parent"
        android:layout_height="wrap_content"
        android:layout_margin="30dp"
        android:text="确认更改"
        app:layout_constraintTop_toBottomOf="@id/tv_3" />
</androidx.constraintlayout.widget.ConstraintLayout>