cloudroam
2025-02-25 49f4b178d05c69f7da7b2200f394ece296766bdb
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="#FAFAFA">
 
    <!-- 标题栏 -->
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="56dp"
        android:background="#FFFFFF"
        android:elevation="1dp">
 
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:text="新增短信提醒"
            android:textSize="17sp"
            android:textColor="#222222" />
 
        <!-- 关闭按钮 -->
        <ImageButton
            android:id="@+id/btn_close"
            android:layout_width="48dp"
            android:layout_height="48dp"
            android:layout_alignParentEnd="true"
            android:layout_centerVertical="true"
            android:background="?attr/selectableItemBackgroundBorderless"
            android:padding="12dp"
            android:src="@android:drawable/ic_menu_close_clear_cancel" />
    </RelativeLayout>
 
    <!-- 内容区域 -->
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="16dp">
 
        <!-- 提醒类型选择 -->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginBottom="16dp">
 
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="选择新增类型 →"
                android:textColor="#666666"
                android:textSize="14sp"
                android:layout_marginBottom="8dp"/>
 
            <Spinner
                android:id="@+id/spinner_type"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/bg_edit_border"
                android:paddingHorizontal="12dp"/>
        </LinearLayout>
 
        <!-- 昵称输入框 -->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginBottom="16dp">
 
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="昵称 →"
                android:textColor="#666666"
                android:textSize="14sp"
                android:layout_marginBottom="8dp"/>
 
            <EditText
                android:id="@+id/edit_nickname"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/bg_edit_border"
                android:hint="仅用于显示与区分,可任意输入"
                android:textColorHint="#999999"
                android:textSize="14sp"
                android:paddingHorizontal="12dp"/>
        </LinearLayout>
 
        <!-- 关键词输入框 -->
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:layout_marginBottom="16dp">
 
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="关键词 →"
                android:textColor="#666666"
                android:textSize="14sp"
                android:layout_marginBottom="8dp"/>
 
            <EditText
                android:id="@+id/edit_keywords"
                android:layout_width="match_parent"
                android:layout_height="48dp"
                android:background="@drawable/bg_edit_border"
                android:hint="用于匹配短信类型"
                android:textColorHint="#999999"
                android:textSize="14sp"
                android:paddingHorizontal="12dp"/>
        </LinearLayout>
 
        <!-- 确定新增按钮 -->
        <Button
            android:id="@+id/btn_add_reminder"
            android:layout_width="match_parent"
            android:layout_height="48dp"
            android:text="确定新增"
            android:textColor="#FFFFFF"
            android:textSize="16sp"
            android:background="@drawable/bg_button_primary"
            android:layout_marginTop="16dp"/>
 
        <!-- 已添加列表 -->
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="已添加列表 →"
            android:textColor="#666666"
            android:textSize="14sp"
            android:layout_marginTop="24dp"
            android:layout_marginBottom="8dp"/>
 
        <androidx.recyclerview.widget.RecyclerView
            android:id="@+id/recycler_reminders"
            android:layout_width="match_parent"
            android:layout_height="160dp"
            android:layout_marginTop="2dp" />
 
    </LinearLayout>
 
</LinearLayout>