feat: 新任务提示条 + 按taskIds直接加载
1. 首页新增"有N条新任务 点击查看"提示条 - pendingCount>0 时显示,点击/查看后消失 - 和红点共存:提示条=统一入口,红点=分类提示 2. TaskListFragment 通知模式 - 有 filterTaskIds 时跳过 queryTaskIds - 直接按 taskId 构建列表,调 lookTaskDetail 加载详情 - 不受 status 筛选限制,跨状态任务都能显示 3. 横幅/提示条共用 navigateToNewTasks() - 1个任务→跳详情,多个→跳列表 - 跳转后清除红点+提示条+pendingTaskIds Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -42,6 +42,22 @@
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!-- 新任务提示条(pendingCount>0 时显示,点击查看所有新任务) -->
|
||||
<TextView
|
||||
android:id="@+id/tvNewTaskHint"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:background="@drawable/bg_new_task_hint"
|
||||
android:gravity="center"
|
||||
android:paddingTop="10dp"
|
||||
android:paddingBottom="10dp"
|
||||
android:text="有1条新任务 点击查看"
|
||||
android:textColor="#FF3B9EFF"
|
||||
android:textSize="18sp"
|
||||
android:textStyle="bold"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- 快捷区 gap:6px→8dp -->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user