任务页五栏联动筛选:项目/时间/重要度/紧急度/状态,流式换行布局

This commit is contained in:
XIGE
2026-11-28 18:17:27 +08:00
parent cc74753bb9
commit 5458695834
5 changed files with 322 additions and 113 deletions

View File

@@ -45,20 +45,21 @@
android:contentDescription="@string/add_task" />
</LinearLayout>
<HorizontalScrollView
<!-- 五栏联动筛选:项目 / 时间 / 重要度 / 紧急度 / 状态,行内放不下自动换行 -->
<LinearLayout
android:id="@+id/filterPanel"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:clipToPadding="false"
android:scrollbars="none">
android:paddingTop="4dp"
android:paddingBottom="10dp" />
<LinearLayout
android:id="@+id/chipRow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" />
</HorizontalScrollView>
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/divider" />
<FrameLayout
android:layout_width="match_parent"

View File

@@ -62,6 +62,7 @@
<string name="tasks_title">任务</string>
<string name="task_count">%1$d 个待办</string>
<string name="task_count_all">%1$d 个任务</string>
<string name="task_count_today">%1$d 个今日任务</string>
<string name="task_count_today_mixed">%1$d 个待办 · 今日完成 %2$d 项</string>
<string name="task_count_done">%1$d 个已完成</string>
@@ -69,6 +70,19 @@
<string name="filter_all">全部</string>
<string name="filter_today">今日</string>
<string name="filter_done">已完成</string>
<string name="filter_project">项目</string>
<string name="filter_time">时间</string>
<string name="filter_importance">重要度</string>
<string name="filter_urgency">紧急度</string>
<string name="filter_status">状态</string>
<string name="time_tomorrow">明天</string>
<string name="time_this_week">本周</string>
<string name="time_this_month">本月</string>
<string name="time_anytime">随时</string>
<string name="status_pending">未完成</string>
<string name="urgency_high">紧急</string>
<string name="urgency_mid">中</string>
<string name="urgency_low">不急</string>
<string name="show_done">显示已完成</string>
<string name="hide_done">隐藏已完成</string>
<string name="pending">待完成</string>