繁体   English   中英

应用程序进入后台时不显示应用程序图标

[英]App icon not displaying when application goes to background

当应用程序进入后台时,应用程序图标不显示。 而是应用程序图标,它显示默认的 android 图标。 虽然我添加了具有透明背景的应用程序图标。 任何帮助表示赞赏。 在此处输入图片说明

清单文件:

<application
    android:name=".TeenApplication"
    android:allowBackup="false"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

drawable-v24 ic_launcher_foreground.xml文件夹中删除ic_launcher_foreground.xml

/res/drawable-v24/ic_launcher_foreground.xml

图像应该是这样的:

在此处输入图片说明

在 Android Nougat 中,默认启动器图标应为roundIcon 请参阅此参考

您必须将它添加到您的AndroidManifest作为您的application标签

 android:icon="@mipmap/ic_launcher"
 android:roundIcon="@mipmap/ic_launcher_round"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM