fix(app): 修复 Adaptive Icon 前景加载失败及前景含背景问题
- mipmap-anydpi-v26 XML 直接引用 @mipmap/ic_launcher_foreground - 删除非法的 drawable/ic_launcher_foreground.xml(<mipmap> 不是合法 drawable 根元素) - 移除无效的 <monochrome> 引用(彩色位图不能用作主题化单色层) - 重新生成带透明通道的前景 WebP,仅保留鸭子+日历
This commit is contained in:
parent
aba2086c22
commit
3f8eb1db05
@ -1,7 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<!--
|
|
||||||
Adaptive Icon 前景: 引用 mipmap 中密度分桶的 foreground 位图,
|
|
||||||
避免矢量化位图主体的质量损失。
|
|
||||||
-->
|
|
||||||
<mipmap xmlns:android="http://schemas.android.com/apk/res/android"
|
|
||||||
android:src="@mipmap/ic_launcher_foreground" />
|
|
||||||
@ -1,10 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!--
|
<!--
|
||||||
Adaptive Icon (API 26+): 系统按 OEM 启动器形状自动裁切背景+前景。
|
Adaptive Icon (API 26+): 系统按 OEM 启动器形状自动裁切背景+前景。
|
||||||
monochrome 让 Android 13+ 主题化图标生效。
|
|
||||||
-->
|
-->
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@drawable/ic_launcher_background" />
|
<background android:drawable="@drawable/ic_launcher_background" />
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
|
||||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
||||||
|
|||||||
@ -2,6 +2,5 @@
|
|||||||
<!-- Adaptive Icon 圆形版 (API 26+), 内容与 ic_launcher.xml 一致 -->
|
<!-- Adaptive Icon 圆形版 (API 26+), 内容与 ic_launcher.xml 一致 -->
|
||||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
<background android:drawable="@drawable/ic_launcher_background" />
|
<background android:drawable="@drawable/ic_launcher_background" />
|
||||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
<foreground android:drawable="@mipmap/ic_launcher_foreground" />
|
||||||
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
|
|
||||||
</adaptive-icon>
|
</adaptive-icon>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 5.6 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 8.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 12 KiB |
Loading…
x
Reference in New Issue
Block a user