From cf9bc941487df8dfb0780d3e8f1281f4e397b5fa Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 06 三月 2025 10:33:57 +0800
Subject: [PATCH] fix: 3
---
app/src/main/res/layout/layout_week_stats.xml | 67 ++++++++++++++++-----------------
1 files changed, 32 insertions(+), 35 deletions(-)
diff --git a/app/src/main/res/layout/layout_week_stats.xml b/app/src/main/res/layout/layout_week_stats.xml
index 0a2d857..e0cb566 100644
--- a/app/src/main/res/layout/layout_week_stats.xml
+++ b/app/src/main/res/layout/layout_week_stats.xml
@@ -4,53 +4,25 @@
android:layout_height="wrap_content"
android:orientation="vertical">
- <!-- 包裹总数统计卡片 -->
+ <!-- 柱状图容器 -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="16dp">
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="16dp">
-
- <ImageView
- android:layout_width="48dp"
- android:layout_height="48dp"
- android:src="@drawable/resource_package" />
-
- <TextView
- android:id="@+id/text_total_packages"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- android:layout_marginStart="16dp"
- android:textSize="24sp"
- android:textStyle="bold"
- android:text="4个" />
- </LinearLayout>
- </androidx.cardview.widget.CardView>
-
- <!-- 每日包裹数量柱状图 -->
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="200dp"
+ android:layout_height="280dp"
android:layout_marginHorizontal="16dp"
+ android:layout_marginTop="8dp"
android:layout_marginBottom="16dp">
<com.github.mikephil.charting.charts.BarChart
android:id="@+id/chart_daily_packages"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:padding="8dp" />
+ android:padding="16dp" />
</androidx.cardview.widget.CardView>
- <!-- 快递公司占比饼图 -->
+ <!-- 饼图容器 -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
- android:layout_height="200dp"
+ android:layout_height="400dp"
android:layout_marginHorizontal="16dp"
android:layout_marginBottom="16dp">
@@ -58,6 +30,31 @@
android:id="@+id/chart_courier_distribution"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:padding="8dp" />
+ 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
--
Gitblit v1.9.3