新增 docs/android/ 目录: - README.md 总入口(快速上手 + 决策摘要 + 数据流) - 01-architecture.md 模块划分 + 数据流 + 选型理由 - 02-api-contract.md 每个接口的请求/响应 + DTO 字段映射 - 03-build-run.md Gradle/SDK/网络安全白名单/真机调试 - 04-milestones.md 7 天里程碑 + DoD + E2E 测试场景 新增 assets/: - logo/: 主图标 master + adaptive icon + 5 DPI launcher (方/圆) - splash/: 启动屏 logo + 完整背景预览 + 5 DPI 资源 - android_resources/: 集成所需的 XML(adaptive icon/主题/颜色/字符串/drawable/layout) - INTEGRATION.md 集成指南 - logo.svg + _make_logo.py 设计源 设计风格:参考用户提供的木质方块字母积木图,米色木纹底 + 深棕色字母 D,代表 'Diary',温暖私人日记感。 服务器体检:所有容器/API/DB/翻译主链路正常,TMT 本月已用 0.37%。 MaaS 备用通道上次已验证可用。
23 lines
1.1 KiB
XML
23 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
SplashScreen API(Android 12+, API 31+)主题
|
|
用 Theme.SplashScreen 库,需要在 build.gradle 依赖 androidx.core:core-splashscreen
|
|
-->
|
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<!-- Android 12+ 启动屏主题(API 31+)-->
|
|
<style name="Theme.App.Starting" parent="Theme.SplashScreen">
|
|
<item name="windowSplashScreenBackground">@color/splash_background</item>
|
|
<item name="windowSplashScreenAnimatedIcon">@mipmap/ic_launcher_foreground</item>
|
|
<item name="windowSplashScreenAnimationDuration">200</item>
|
|
<item name="postSplashScreenTheme">@style/Theme.DiaryNews</item>
|
|
</style>
|
|
|
|
<!-- Android 11 及以下启动屏主题(API < 31)— 用自定义 drawable 作 background-->
|
|
<style name="Theme.App.Starting.Legacy" parent="Theme.DiaryNews">
|
|
<item name="android:windowBackground">@drawable/splash_screen</item>
|
|
<item name="android:statusBarColor">@color/splash_background</item>
|
|
<item name="android:navigationBarColor">@color/splash_background</item>
|
|
</style>
|
|
|
|
</resources> |