yayacal/app/AGENTS-anim.md
xfy dd072730f1 fix: 年视图 pageYear 使用 settledPage 计算,修复滑动切换时年份闪烁
pageYear = yearViewYear + (page - settledPage) 代替 currentPage,
因为 yearViewYear 由 settledPage 驱动,两者始终同步。
用 currentPage 会在滑动过半时出现不匹配,导致小月份
短暂显示错误年份数据。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 16:09:42 +08:00

34 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- Parent: ../../AGENTS.md -->
<!-- Generated: 2026-05-22 | Updated: 2026-05-22 -->
# anim
## Purpose
Activity 转场动画资源目录。定义 Activity 进入和退出的滑入/滑出动画效果,配合 `overridePendingTransition()` 使用。
## Key Files
| File | Description |
|------|-------------|
| `slide_in_right.xml` | 从右侧滑入duration: 350msfast_out_slow_in 插值器) |
| `slide_in_left.xml` | 从左侧滑入 |
| `slide_out_left.xml` | 向左侧滑出 |
| `slide_out_right.xml` | 向右侧滑出 |
## Subdirectories
## For AI Agents
### Working In This Directory
- 新增转场动画需同步更新对应 Activity 的 `overridePendingTransition()` 调用
- 动画时长建议 300-400ms使用 `fast_out_slow_in` 插值器保持 Material Design 一致性
## Dependencies
### Internal
- `app/src/main/kotlin/plus/rua/project/AboutActivity.kt` — 使用 slide_in_right / slide_out_left
- `app/src/main/kotlin/plus/rua/project/LicensesActivity.kt` — 使用 slide_in_right / slide_out_left
<!-- MANUAL: -->