我正在尝试在Android Studio中为我的应用设置圆形启动器图标,但是当我在运行Oreo(API 27)的模拟器中测试应用时,它只显示默认图标.我使用Image Asset添加了图标,并用http://romannurik.github.io/AndroidAssetStudio/生成的图像覆盖了图像.
我android:roundIcon="@mipmap/ic_launcher_round"在清单文件中指定并确保图标在res文件夹中使用了相应的名称.
默认图标适用于较旧的OS版本.我缺少什么?
如果您不是一个特别的开发人员,那么此答案适合您:
<application
android:icon="@drawable/ic_launcher"
android:roundIcon="@mipmap/ic_launcher">
</application>
Run Code Online (Sandbox Code Playgroud)
我已经使用相同icon的图标和roundIcon。它解决了我的问题。另外,我不明白为什么android有这么多的应用程序图标设置,年龄越大越好!!!
| 归档时间: |
|
| 查看次数: |
6011 次 |
| 最近记录: |