(我已经更新了帖子)
这是我的项目的方式:
显现:
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:label="@string/app_name"
纹理贴图:
由新建 > 图像资源创建
我选择了启动器图标(自适应和旧版)
Icons https://i.stack.imgur.com/B2tG7.png
另外,当我打开其中任何一个时,我会看到我想要的图标:
Icon https://i.stack.imgur.com/R5l2b.png
现在,启动器图标可以正常工作了:
启动器图标 https://i.stack.imgur.com/aXDLP.png
我遇到的问题是,它不想更新当我要选择另一个应用程序时显示的图标。
Problem https://i.stack.imgur.com/tHoZZ.jpg
您必须更新清单文件中应用程序标记的两个属性。
android:icon="@mipmap/ic_launcher" <-- Change this one
android:roundIcon="@mipmap/ic_launcher_round" //<-- and this one
或者你可以删除
android:roundIcon="@mipmap/ic_launcher_round" //<-- and this one
确保您已将所有 mipmap/drawable 放置在正确的位置并适用于所有 dpi。
如果您仍有问题,请联系我。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)