From 0a730b84c41f44129bf5ecc112450d2edf4312c9 Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期二, 15 四月 2025 17:44:56 +0800
Subject: [PATCH] 1.4 返回按钮
---
app/src/main/res/layout/layout_week_stats.xml | 90 ++++++++++++++++++++++++++++++--------------
1 files changed, 61 insertions(+), 29 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..9b8a80f 100644
--- a/app/src/main/res/layout/layout_week_stats.xml
+++ b/app/src/main/res/layout/layout_week_stats.xml
@@ -4,23 +4,79 @@
android:layout_height="wrap_content"
android:orientation="vertical">
- <!-- 柱状图容器 -->
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ >
+ <TextView
+ android:id="@+id/bar_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="本周包裹物流公司分布 ->"
+ android:layout_margin="16dp"
+ >
+
+ </TextView>
+ </LinearLayout>
+ <!-- 柱状图容器,内边距16dp -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="280dp"
android:layout_marginHorizontal="16dp"
android:layout_marginTop="8dp"
- android:layout_marginBottom="16dp">
+ android:layout_marginBottom="16dp"
+ android:padding="100dp"
+ >
<com.github.mikephil.charting.charts.BarChart
android:id="@+id/chart_daily_packages"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="16dp" />
+ android:layout_height="wrap_content"
+ android:padding="50dp"
+
+ />
</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>
+
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ >
+ <TextView
+ android:id="@+id/pie_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="本周包裹物流公司分布 ->"
+ android:layout_margin="16dp"
+ >
+ </TextView>
+ </LinearLayout>
<!-- 饼图容器 -->
<androidx.cardview.widget.CardView
+ android:id="@+id/chart_courier_card_view"
android:layout_width="match_parent"
android:layout_height="400dp"
android:layout_marginHorizontal="16dp"
@@ -33,28 +89,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