我试图为我的android应用程序添加具有自适应图标功能的启动图标。我面临的问题是该图标与android完美地工作,但它显示了android默认的android图标用于前奥利奥设备。如何根据不同的android版本设置启动图标?
图标的清单代码:
android:icon="@mipmap/ic_launcher"
android:roundIcon="@drawable/ic_logo"ic_launcher.xml
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_background"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>发布于 2018-04-27 06:43:44
您可以在Android中创建像这样的自适应图标
右击应用程序>新建->图像资产
还有这个

你可以选择你的图像,前景层,背景层等等。
https://stackoverflow.com/questions/50056683
复制相似问题