From f67cf3b81a00f732ca743431258ae6b78f5f40ab Mon Sep 17 00:00:00 2001 From: tj <1378534974@qq.com> Date: 星期四, 17 四月 2025 15:05:28 +0800 Subject: [PATCH] 11、我的 切换头像 点击切换头像没有显示允许存储权限的窗口,华为的手机目前有 49、首页 实时刷新 点击全部取件或其他分类后,回到上一层,内容没有刷新(5个分类) 52、数据统计 数据统计 1.周月年的柱状图统计逻辑需要修改为只统计快递类的数据 2.按年的图形统计,右下方加上图示说明 53、首页 首页登录 点击用户协议、隐私政策无反应 --- app/src/main/res/layout/layout_week_stats.xml | 80 +++++++++++++++++++++++++++++++++++----- 1 files changed, 70 insertions(+), 10 deletions(-) diff --git a/app/src/main/res/layout/layout_week_stats.xml b/app/src/main/res/layout/layout_week_stats.xml index 6e1c3e8..a328499 100644 --- a/app/src/main/res/layout/layout_week_stats.xml +++ b/app/src/main/res/layout/layout_week_stats.xml @@ -4,32 +4,92 @@ 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="280dp" + android:layout_height="wrap_content" android:layout_marginHorizontal="16dp" - android:layout_marginBottom="16dp"> + android:layout_marginBottom="16dp" + android:padding="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="16dp" /> + 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