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

1.7 KiB
Raw Blame History

main

Purpose

Android 应用主 source set包含入口 Activities、应用清单、主题资源、转场动画和图标资源。

Key Files

File Description
kotlin/plus/rua/project/MainActivity.kt Android 入口 Activity
kotlin/plus/rua/project/AboutActivity.kt 关于页面 Activity
kotlin/plus/rua/project/LicensesActivity.kt 许可证列表 Activity
AndroidManifest.xml Android 应用清单
res/values/themes.xml Material 3 主题定义
res/values-night/themes.xml 夜间模式主题
res/values/strings.xml 应用名称等字符串
res/anim/slide_in_right.xml Activity 进入动画(右滑入)
res/anim/slide_out_left.xml Activity 退出动画(左滑出)
assets/gifs/ GIF 动画资源

Subdirectories

Directory Purpose
kotlin/plus/rua/project/ Kotlin 源码(见 kotlin/plus/rua/project/AGENTS.md
res/ Android 资源文件(图标、主题、字符串、动画)
res/anim/ Activity 转场动画 XMLres/anim/AGENTS.md
res/values/ 字符串和主题定义(见 res/values/AGENTS.md
assets/ 原始资产文件GIF 等)(见 assets/AGENTS.md

For AI Agents

Working In This Directory

  • 仅放置 Android 平台特有的配置和入口代码
  • 不要在此添加业务逻辑
  • 主题和颜色配置在 res/values/
  • 新增 Activity 需在 AndroidManifest.xml 中声明

Dependencies

Internal

  • :core 模块 — Activities 调用 :core 中的 Composable