简体   繁体   中英

App icon not displaying when application goes to background

Application icon not displaying when app goes to background. Instead app icon it shows default android icon. Although i added app icon with transparent background . Any help is appreciated . 在此处输入图片说明

Manifest File :

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

Remove ic_launcher_foreground.xml from drawable-v24 folder

/res/drawable-v24/ic_launcher_foreground.xml

The image should be like this:

在此处输入图片说明

From Android Nougat, default launcher icon should be roundIcon . See this Reference

You have to add it in your AndroidManifest for your application tag

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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