From 2e1edcb7518f20dec30dbd6e1686e9e6b558ec15 Mon Sep 17 00:00:00 2001
From: tj <1378534974@qq.com>
Date: 星期三, 16 四月 2025 17:05:12 +0800
Subject: [PATCH] 43 首页登录->首页登录 1.首页弹窗协议同意后,不能默认自动勾选,还需要用户手动勾选 2.退出登录后,再次登录需要手动勾选与用户协议(目前是默认勾选了) 44 首页登录->邀请码 邀请码默认填入“邀请码(选填) 47 数据统计->饼状图数据分类统计问题 1、只统计快递 无需统计还款其他分类 2、图形上下间隔过大" 48 数据统计 天、周、月、年 1.数据统计只统计快递类的,其他分类不需要统计展示,例如取件码记录 2.包括周、月、年的统计环状图,只需要统计快递分类的
---
app/src/main/res/layout/layout_week_stats.xml | 100 ++++++++++++++++++++++++++++++++-----------------
1 files changed, 65 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..2499968 100644
--- a/app/src/main/res/layout/layout_week_stats.xml
+++ b/app/src/main/res/layout/layout_week_stats.xml
@@ -4,60 +4,90 @@
android:layout_height="wrap_content"
android:orientation="vertical">
- <!-- 包裹总数统计卡片 -->
- <androidx.cardview.widget.CardView
+ <LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_margin="16dp">
-
- <LinearLayout
- android:layout_width="match_parent"
+ >
+ <TextView
+ android:id="@+id/bar_title"
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="16dp">
+ android:text="本周包裹物流公司分布 ->"
+ android:layout_margin="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>
-
- <!-- 每日包裹数量柱状图 -->
+ </TextView>
+ </LinearLayout>
+ <!-- 柱状图容器,内边距16dp -->
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
- android:layout_height="200dp"
+ android:layout_height="280dp"
android:layout_marginHorizontal="16dp"
- android:layout_marginBottom="16dp">
+ android:layout_marginTop="8dp"
+ 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="8dp" />
+ 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="200dp"
+ 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="wrap_content"
+ android:layout_marginHorizontal="0dp"
+ android:layout_marginBottom="0dp">
<com.github.mikephil.charting.charts.PieChart
android:id="@+id/chart_courier_distribution"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="8dp" />
+ android:layout_height="wrap_content"
+ android:minHeight="300dp"
+ android:padding="0dp" />
</androidx.cardview.widget.CardView>
-</LinearLayout>
\ No newline at end of file
+
+</LinearLayout>
\ No newline at end of file
--
Gitblit v1.9.3