圆形应用程序图标未在Android Oreo上显示

Phi*_*hil 8 icons android

我正在尝试在Android Studio中为我的应用设置圆形启动器图标,但是当我在运行Oreo(API 27)的模拟器中测试应用时,它只显示默认图标.我使用Image Asset添加了图标,并用http://romannurik.github.io/AndroidAssetStudio/生成的图像覆盖了图像.

android:roundIcon="@mipmap/ic_launcher_round"清单文件中指定并确保图标在res文件夹中使用了相应的名称.

默认图标适用于较旧的OS版本.我缺少什么?

小智 6

您将转到File->New->image Assert->legacy-> google play 商店图标标题下方,然后选择圆圈选项。


dd6*_*619 6

如果您不是一个特别的开发人员,那么此答案适合您:

<application
    android:icon="@drawable/ic_launcher"
    android:roundIcon="@mipmap/ic_launcher">

</application>
Run Code Online (Sandbox Code Playgroud)

我已经使用相同icon的图标和roundIcon。它解决了我的问题。另外,我不明白为什么android有这么多的应用程序图标设置,年龄越大越好!!!