1.1
tj
2025-04-09 2b446a5fd5d8f9b8c0f1e3acef1eef7ad9adb6f9
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/white"
    android:fillViewport="true"
    android:paddingBottom="56dp">
 
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">
 
        <!-- 顶部广告位 - 减小高度 -->
        <ImageView
            android:id="@+id/iv_banner"
            android:layout_width="match_parent"
            android:layout_height="32dp"
            android:scaleType="centerCrop" />
 
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="25dp"
            android:gravity="center_vertical"
            android:orientation="horizontal">
 
            <View
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1" />
 
            <ImageView
                android:id="@+id/iv_setting"
                android:layout_width="28dp"
                android:layout_height="wrap_content"
                android:layout_marginEnd="8dp"
                android:contentDescription="设置"
                android:src="@mipmap/setting" />
        </LinearLayout>
 
 
        <!-- 用户信息区域 - 减小padding -->
        <RelativeLayout
            android:id="@+id/layout_user_info"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:padding="12dp">
 
            <com.google.android.material.imageview.ShapeableImageView
                android:id="@+id/iv_avatar"
                android:layout_width="50dp"
                android:layout_height="50dp"
                android:scaleType="centerCrop"
                app:shapeAppearanceOverlay="@style/CircleImageView" />
 
            <ImageView
                android:id="@+id/iv_vip"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_alignBottom="@id/tv_nickname"
                android:layout_marginStart="8dp"
                android:layout_toEndOf="@id/tv_nickname"
                android:contentDescription="VIP标识"
                android:src="@drawable/me_vip" />
 
            <TextView
                android:id="@+id/tv_nickname"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginStart="16dp"
                android:layout_toEndOf="@id/iv_avatar"
                android:textColor="@android:color/black"
                android:textSize="18sp"
                android:textStyle="bold" />
 
            <TextView
                android:id="@+id/tv_user_id"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@id/tv_nickname"
                android:layout_marginStart="16dp"
                android:layout_marginTop="4dp"
                android:layout_toEndOf="@id/iv_avatar"
                android:textColor="@android:color/darker_gray"
                android:textSize="14sp" />
        </RelativeLayout>
 
        <!-- VIP会员卡片 - 减小margin和padding -->
        <androidx.cardview.widget.CardView
            android:id="@+id/card_vip"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="12dp"
            android:layout_marginVertical="8dp"
            app:cardCornerRadius="8dp"
            app:cardElevation="4dp">
 
            <LinearLayout
                android:id="@+id/linearVipContainer"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@android:color/black"
                android:orientation="horizontal"
                android:padding="12dp">
 
                <LinearLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:orientation="vertical">
 
                    <!-- 第一行:VIP标题 + 有效期 -->
                    <LinearLayout
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:orientation="horizontal"
                        android:gravity="center_vertical">
 
                        <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="VIP会员  "
                            android:textColor="#B8741A"
                            android:textSize="18sp"
                            android:textStyle="bold"/>
 
                        <!-- 添加间隔 -->
 
                        <TextView
                            android:id="@+id/tv_vip_expire"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:textColor="#F2F2F2"
                            android:textSize="14sp"/>
                    </LinearLayout>
 
                    <!-- 第二行:续费提示(上移调整) -->
                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_marginTop="4dp"
                        android:text="续费畅享更多会员权益"
                        android:textColor="#F0DCBF"
                        android:textSize="12sp"
                        android:textStyle="bold"/>
                </LinearLayout>
 
                <Button
                    android:id="@+id/btn_renew"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:backgroundTint="#7A441E"
                    android:text="立即续费"
                    android:textColor="#F0DCBF" />
            </LinearLayout>
        </androidx.cardview.widget.CardView>
 
        <!-- 功能区域标题 - 调整margin -->
        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_columnSpan="4"
            android:layout_marginStart="12dp"
            android:layout_marginTop="12dp"
            android:layout_marginBottom="4dp"
            android:text="功能"
            android:textColor="#333333"
            android:textSize="15sp"
            android:textStyle="bold" />
 
        <!-- 功能图标网格 - 减小padding和调整间距 -->
        <GridLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:columnCount="4"
            android:paddingHorizontal="8dp"
            android:paddingVertical="4dp">
 
<!--            &lt;!&ndash; 会员 &ndash;&gt;-->
<!--            <RelativeLayout-->
<!--                android:id="@+id/memberVip"-->
<!--                style="@style/PluginPay"-->
<!--                android:padding="16dp">-->
 
<!--                <TextView-->
<!--                    android:layout_width="wrap_content"-->
<!--                    android:layout_height="wrap_content"-->
<!--                    android:layout_centerVertical="true"-->
<!--                    android:text="会员"-->
<!--                    android:textColor="@android:color/black"-->
<!--                    android:textSize="16sp" />-->
 
<!--                <ImageView-->
<!--                    android:layout_width="24dp"-->
<!--                    android:layout_height="24dp"-->
<!--                    android:layout_alignParentEnd="true"-->
<!--                    android:layout_centerVertical="true"-->
<!--                    android:src="@drawable/right_forward" />-->
<!--            </RelativeLayout>-->
 
<!--            &lt;!&ndash; 支付 &ndash;&gt;-->
<!--            <RelativeLayout-->
<!--                android:id="@+id/payPlugin"-->
<!--                style="@style/PluginPay"-->
<!--                android:padding="16dp">-->
 
<!--                <TextView-->
<!--                    android:layout_width="wrap_content"-->
<!--                    android:layout_height="wrap_content"-->
<!--                    android:layout_centerVertical="true"-->
<!--                    android:text="支付"-->
<!--                    android:textColor="@android:color/black"-->
<!--                    android:textSize="16sp" />-->
 
<!--                <ImageView-->
<!--                    android:layout_width="24dp"-->
<!--                    android:layout_height="24dp"-->
<!--                    android:layout_alignParentEnd="true"-->
<!--                    android:layout_centerVertical="true"-->
<!--                    android:src="@drawable/right_forward" />-->
<!--            </RelativeLayout>-->
 
            <!-- 设置提醒 -->
            <LinearLayout
                android:id="@+id/layout_reminder"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_set_reminder" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="设置提醒" />
            </LinearLayout>
 
            <!-- 待办 -->
            <LinearLayout
                android:id="@+id/layout_todo"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_wait_todo" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="待办" />
            </LinearLayout>
 
            <!-- 好友邀请 -->
            <LinearLayout
                android:id="@+id/layout_invite"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_friend_invitation" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="好友邀请" />
            </LinearLayout>
 
            <!-- AI助手 -->
            <LinearLayout
                android:id="@+id/layout_ai"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_ai_assistant" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="AI助手" />
            </LinearLayout>
 
            <!-- 离线模式 -->
            <LinearLayout
                android:id="@+id/layout_offline"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_offline_mode" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="离线模式" />
            </LinearLayout>
 
            <!-- 联系与反馈标题 - 调整margin -->
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_columnSpan="4"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                android:layout_marginBottom="4dp"
                android:text="联系与反馈"
                android:textColor="#333333"
                android:textSize="15sp"
                android:textStyle="bold" />
 
            <!-- 关于小红书 -->
            <LinearLayout
                android:id="@+id/layout_about"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_xiaohongshu" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="关于小红书" />
            </LinearLayout>
 
            <!-- 邮件联系 -->
            <LinearLayout
                android:id="@+id/layout_email"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_email" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="邮件联系" />
            </LinearLayout>
 
            <!-- 意见与反馈 -->
            <LinearLayout
                android:id="@+id/layout_feedback"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_feedback" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="意见与反馈" />
            </LinearLayout>
 
            <!-- 其他标题 - 调整margin -->
            <TextView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_columnSpan="4"
                android:layout_marginStart="12dp"
                android:layout_marginTop="12dp"
                android:layout_marginBottom="4dp"
                android:text="其他"
                android:textColor="#333333"
                android:textSize="15sp"
                android:textStyle="bold" />
 
            <!-- 隐私协议 -->
            <LinearLayout
                android:id="@+id/layout_privacy"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_privacy" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="隐私协议" />
            </LinearLayout>
 
            <!-- 使用教程 -->
            <LinearLayout
                android:id="@+id/layout_tutorial"
                style="@style/FunctionIconStyle">
 
                <ImageView
                    style="@style/FunctionImageStyle"
                    android:src="@drawable/me_tutorial" />
 
                <TextView
                    style="@style/FunctionTextStyle"
                    android:text="使用教程" />
            </LinearLayout>
 
        </GridLayout>
 
        <!-- 底部间距缩小 -->
        <View
            android:layout_width="match_parent"
            android:layout_height="8dp" />
 
    </LinearLayout>
</ScrollView>