From cb99bd7dad1b305a434c5c6c99ca65e782eb0f34 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期五, 11 四月 2025 17:32:12 +0800 Subject: [PATCH] add: 消息提醒 --- app/src/main/res/layout/layout_week_stats.xml | 50 ++++++++++++++++++++++++-------------------------- 1 files changed, 24 insertions(+), 26 deletions(-) diff --git a/app/src/main/res/layout/layout_week_stats.xml b/app/src/main/res/layout/layout_week_stats.xml index e0cb566..41d6b61 100644 --- a/app/src/main/res/layout/layout_week_stats.xml +++ b/app/src/main/res/layout/layout_week_stats.xml @@ -4,7 +4,7 @@ android:layout_height="wrap_content" android:orientation="vertical"> - <!-- 柱状图容器 --> + <!-- 柱状图容器,内边距16dp --> <androidx.cardview.widget.CardView android:layout_width="match_parent" android:layout_height="280dp" @@ -17,6 +17,28 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:padding="16dp" /> + </androidx.cardview.widget.CardView> + + <!-- 热力图容器 --> + <androidx.cardview.widget.CardView + android:id="@+id/heatmap_yearly" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginHorizontal="16dp" + android:layout_marginBottom="16dp"> + + <HorizontalScrollView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="16dp"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <!-- 热力图将在这里动态添加 --> + </LinearLayout> + </HorizontalScrollView> </androidx.cardview.widget.CardView> <!-- 饼图容器 --> @@ -33,28 +55,4 @@ android:padding="16dp" /> </androidx.cardview.widget.CardView> - <!-- 热力图容器 --> - <androidx.cardview.widget.CardView - android:id="@+id/heatmap_yearly" - android:layout_width="match_parent" - android:layout_height="280dp" - android:layout_marginHorizontal="16dp" - android:layout_marginTop="8dp" - android:layout_marginBottom="16dp" - android:visibility="gone"> - - <HorizontalScrollView - android:layout_width="match_parent" - android:layout_height="match_parent" - android:padding="16dp"> - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="match_parent" - android:orientation="horizontal"> - <!-- 热力图将在这里动态添加 --> - </LinearLayout> - </HorizontalScrollView> - </androidx.cardview.widget.CardView> - -</LinearLayout> \ No newline at end of file +</LinearLayout> \ No newline at end of file -- Gitblit v1.9.3