Files
AndroidNotifyIconAdapt/README.md
2022-03-22 00:31:25 +08:00

97 lines
4.0 KiB
Markdown

# Android 通知图标规范适配计划
![Eclipse Marketplace](https://img.shields.io/badge/license-AGPL3.0-blue)
[![Telegram](https://img.shields.io/static/v1?label=Telegram&message=交流讨论&color=0088cc)](https://t.me/XiaofangInternet)
这是一个在线规则平台,为国内 Android 不规范的 APP 和厂商适配原生通知图标与规范图标修复。
# Developers
- <b>发起人</b> [酷安 @星夜不荟](http://www.coolapk.com/u/876977)
- <b>图标绘制</b> [酷安 @PedroZ](http://www.coolapk.com/u/1157881)
# 已支持的 OS 模块
- MIUI 系统 请参阅 [MIUI 原生通知图标](https://github.com/fankes/MIUINativeNotifyIcon)
- ColorOS、RealmeUI、OxygenOS(≥12) 系统 请参阅 [ColorOS 通知图标增强](https://github.com/fankes/ColorOSNotifyIcon)
- Flyme <strong>或许可能,敬请期待。有需求可提交 `issues`</strong>
- 类原生、Pixel 的国内用户 <strong>暂无计划,敬请期待</strong>
# 需求适配
国内 OS 的适配按需求人数决定,小众、无法 Root 的设备不会适配,如有需求可提交至 `issues` 共同讨论。
# 项目起源
构建这个项目的初衷就是想规范国内乱七八糟的 APP 生态,让国内用户也能体验到原生 Android 通知图标的规范美。<br/>
这一切的原因归根结底都是 MIUI 的不规范推送图标导致我忍无可忍而起之,其它厂商也不能解决彩色 APP 作为图标的欺骗意义的“解决方案”。<br/>
相信与我有同样想法的人存在,那么这个项目就可以帮助你完善这个愿望,顺便,你也可以帮助这个项目贡献图标资源。<br/>
有人说,用类原生系统不就好了,但是在国内的环境,类原生系统真的已经不合适了,毛坯房终究还是要自己去补全,在这个吃快餐的时代,显得有些狼狈了。
# 不规范收录
<strong>(不规范)</strong>允许 API 19 以上 APP 使用彩色图标但保留原生单色图标<br/>
甚至自己的系统 APP 都在用彩色通知图标
- EMUI(≤3 ≥5)、HarmonyOS(Android 9、10)、MagicUI
- ColorOS、RealmeUI
- OxygenOS(≤12)
- MyOS
- RogUI
<strong>(破坏)</strong>完全破坏原生单色图标全部强制使用 APP 彩色图标<br/>
方法 `setSmallIcon` 失效
- EMUI(4.0 、4.0.1、4.1)
- MIUI(≤9 ≥12.5)、JoyUI
- ZUI
- NubiaUI、RedMagicOS
- 360OS
- CoolOS
- WaterOS
<strong>(破坏)</strong>只能强制通过系统预制的 APP 白名单设置通知图标<br/>
方法 `setSmallIcon` 失效
- Flyme
<strong>(勉强合格)</strong>通过系统预制的 APP 设置图标但保留原生单色图标
- MIUI(10、11、12)
- OriginOS、FuntouchOS
- SmartisanOS
# 开始贡献
由于国内厂商 APP 的不规范彩色通知图标影响整体图标的美观,现在开放第三方 APP 以及定制 OS 的通知图标适配。<br/>
这是一个公开在线规则平台,欢迎为通知图标优化名单贡献宝贵资源!<br/>
- [CONTRIBUTING](https://github.com/fankes/AndroidNotifyIconAdapt/blob/main/CONTRIBUTING.md)
# 通知测试
你可以 [点击这里](https://github.com/fankes/AndroidNotifyIconAdapt/raw/main/tool/NotifyTester.apk) 下载工具测试通知图标是否符合原生规范。
# 许可证
- [AGPL-3.0](https://www.gnu.org/licenses/agpl-3.0.html)
```
Copyright (C) 2019-2022 Fankes Studio(qzmmcn@163.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
```
版权所有 © 2019-2022 Fankes Studio(qzmmcn@163.com)