From f0ed7952b5ec4d091ce74183f77c67ef3a2e60e0 Mon Sep 17 00:00:00 2001
From: zhujie <leon.zhu@cloudroam.com.cn>
Date: 星期五, 18 四月 2025 17:49:30 +0800
Subject: [PATCH] 样式

---
 app/src/main/java/com/example/firstapp/ui/dashboard/DashboardFragment.kt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/src/main/java/com/example/firstapp/ui/dashboard/DashboardFragment.kt b/app/src/main/java/com/example/firstapp/ui/dashboard/DashboardFragment.kt
index 5aa4f28..89515e4 100644
--- a/app/src/main/java/com/example/firstapp/ui/dashboard/DashboardFragment.kt
+++ b/app/src/main/java/com/example/firstapp/ui/dashboard/DashboardFragment.kt
@@ -850,7 +850,7 @@
                     addView(TextView(context).apply {
                         text = ""
                         textSize = 20f
-                        height = resources.getDimensionPixelSize(R.dimen.heatmap_cell_size)
+                        height = resources.getDimensionPixelSize(R.dimen.heatmap_cell_week_size)
                     })
                     dayLabels.forEach { label ->
                         val textView = TextView(context).apply {
@@ -962,7 +962,7 @@
                 legendLevels.forEach { level ->
                     val colorBox = View(context).apply {
                         setBackgroundColor(getHeatmapColor(level))
-                        val size = resources.getDimensionPixelSize(R.dimen.heatmap_cell_size)
+                        val size = resources.getDimensionPixelSize(R.dimen.heatmap_cell_legend_size)
                         layoutParams = LinearLayout.LayoutParams(size, size).apply {
                             marginEnd = 4
                         }

--
Gitblit v1.9.3