箭头缩至与圆圈同高;统计页分布卡移到趋势前(v0.12)

This commit is contained in:
XIGE
2026-11-29 10:54:00 +08:00
parent 86d2f4cbaa
commit 39105ee1e2
4 changed files with 22 additions and 18 deletions

View File

@@ -1,5 +1,9 @@
# 变更记录
## 2026-11-29 · 箭头缩至与圆圈同高;统计页分布卡移到趋势前(v0.12)
- 同步源码更新 3 个文件(新增/修改 3,删除 0)。
## 2026-11-29 · 前台启动失败自动重试;属性图标视觉高度统一;统计标题简化(v0.11)
- 状态栏图标时有时无(需反复开关 APP):与负数计时同根因——v0.7 换 specialUse 后 startForeground 在 Android 12 上概率性被拒,服务起不来就没有通知。v0.10 已治本(按版本显式选型);本版加固:显式类型被拒先退回两参版本重试,仍失败延迟 500ms 自动重试一次,成功后重置标记,用户不再需要反复开关

View File

@@ -373,6 +373,6 @@ class SettingsFragment : Fragment(R.layout.fragment_settings) {
}
companion object {
const val VERSION = "0.11"
const val VERSION = "0.12"
}
}

View File

@@ -87,8 +87,8 @@ class TaskAdapter(
// 标题右侧的属性图标,未完成与已完成都显示:
// 重要度圆圈数字(③ 高 / ② 中 / ① 普通,颜色与紧急度同色系)→
// 紧急度五角星 → 随时上箭头。
// 各字形在字体里的字面尺寸不同:五角星 0.95、圆圈数字字面偏大缩到 0.85、
// 上箭头字面偏小放到 1.1,三者视觉高度一致,不再一宽一高。
// 各字形在字体里的字面尺寸不同:以圆圈数字 0.85 为基准,
// 上箭头与圆圈同高;五角星 0.95 不作参照
val title = SpannableStringBuilder(task.title)
val (badge, badgeColor) = when (task.priority) {
@@ -123,7 +123,7 @@ class TaskAdapter(
android.text.style.ForegroundColorSpan(ctx.col(R.color.brand)),
title.length - 2, title.length, 0
)
title.setSpan(RelativeSizeSpan(1.1f), title.length - 2, title.length, 0)
title.setSpan(RelativeSizeSpan(0.85f), title.length - 2, title.length, 0)
}
tvTitle.text = title

View File

@@ -169,6 +169,20 @@
</LinearLayout>
</LinearLayout>
<!-- 项目分布:自带 日/周/月/年 与左右翻页 -->
<com.focusbox.app.ui.stats.PeriodDistributionCard
android:id="@+id/cardProject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp" />
<!-- 任务分布 -->
<com.focusbox.app.ui.stats.PeriodDistributionCard
android:id="@+id/cardTask"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp" />
<!-- 趋势 -->
<LinearLayout
android:layout_width="match_parent"
@@ -250,20 +264,6 @@
android:gravity="center_vertical" />
</LinearLayout>
<!-- 项目分布:自带 日/周/月/年 与左右翻页 -->
<com.focusbox.app.ui.stats.PeriodDistributionCard
android:id="@+id/cardProject"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp" />
<!-- 任务分布 -->
<com.focusbox.app.ui.stats.PeriodDistributionCard
android:id="@+id/cardTask"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="12dp" />
<!-- 累计 -->
<LinearLayout
android:layout_width="match_parent"