yayacal/app/AGENTS-values.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

32 lines
759 B
Markdown
Raw Permalink 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 -->
# values
## Purpose
Android 值资源目录,包含应用字符串和 Material 3 主题定义。
## Key Files
| File | Description |
|------|-------------|
| `strings.xml` | 应用名称字符串(`app_name: YaYa` |
| `themes.xml` | 日间主题:`Theme.Material.Light.NoActionBar` |
## Subdirectories
## For AI Agents
### Working In This Directory
- 新增字符串资源在此文件中定义
- 主题继承自 `Theme.Material.Light.NoActionBar`,支持 `enableEdgeToEdge()` 全屏显示
- 夜间模式主题在 `../values-night/themes.xml` 中定义
## Dependencies
### Internal
- `app/src/main/AndroidManifest.xml` — 引用主题
<!-- MANUAL: -->