Questions tagged [adaptive-icon]

Vector icon format for Android 8.0 Oreo and newer consisting of a foreground vector icon, and/or a background vector drawing and a mask for the overall shape provided by the specific Android configuration/style.

The idea, as with vector icons in general, is to reduce the need for multiple images for different combinations of Android versions and device screen resolutions. Also, the mask allows vendors to apply a style to all icons (for instance square, rounded square, circular) if desired.

Introduced with android-8.0-oreo as an xml format with an <adaptive-icon> tag in which <background> and <foreground> tags can be nested, each with an android:drawable attribute.

See also the Android developer page.

35 questions
3
votes
0 answers

Default launcher icon shown instead of the adaptive one when installed from an APK

I followed the docs to implement the new adaptive icon by creating XML with in res/mipmap-anydpi-v26/cs_ic_launcher.xml. The icon is correctly set in the manifest. android:icon="@mipmap/cs_ic_launcher" It all works fine when the app…
Marcel Bro
  • 4,907
  • 4
  • 43
  • 70
2
votes
0 answers

Android - Adaptive icon wired on Huawei devices

I am using adaptive icon in my app with two .png files as background and foreground. It looks good on emulator and my phone, but when I install it to a Huawei device (EMUI/Harmony), it turns into square shape weirdly with both layers scale to the…
Ayaka_Ago
  • 89
  • 9
2
votes
2 answers

Why does my launcher icon look different?

See the image: Why does my icon look different to the other icons on the screen? In Android Studio, I set trim to zero and yet it still shows up like this on my phone. I have Nova Launcher installed which makes all my apps have rounded icons, but…
Chud37
  • 4,907
  • 13
  • 64
  • 116
2
votes
0 answers

Not-adaptive icons on Android 8

I'm working on an app that gets a really ugly icon on Android 8 (like the LinkedIn app in the image below). To solve this issue, the Internet says that I need to implement adaptive icons. Fair enough. The problem is that the company that owns the…
Dambakk
  • 595
  • 4
  • 20
1
vote
1 answer

Android adaptive icon only?

We are making an app that has minSdk version 26, the version that started using Android adaptive icons. Image Asset Studio google recommends creating a lot of legacy icons etc. Is it possible to remove everything and just have an adaptive icon? What…
Gober
  • 3,632
  • 3
  • 26
  • 33
1
vote
1 answer

How to find the current Icon Shape of apps?

I currently load app icons clipped to their correct shapes using: context.packageManager.getApplicationIcon(packageName) But I'm looking into adapting a custom icon shape in my app based on user's app icon shape (Square, Teardrop, Squircle, etc)…
waseefakhtar
  • 1,373
  • 2
  • 24
  • 47
1
vote
1 answer

Adaptive icon positioning issue

I have adaptive XML icon, built from 3 drawables.
RomanMitasov
  • 925
  • 9
  • 25
1
vote
2 answers

Adaptive icons not working in Oreo - why?

I'm trying to add a custom icon from an SVG file to my Android app by right-clicking on the res folder -> new -> Image asset. I have selected the default options, using my SVG but I can't see the icon when I'm running the app. I have tried to do a…
noloman
  • 11,411
  • 20
  • 82
  • 129
1
vote
1 answer

How to implement real time dynamic icon like clock/ calendar app in android?

In the android clock app icon shows the correct analog real-time in icon, even calendar app icon shows today's date. How to implement real-time icons in apps?
pa1pal
  • 743
  • 3
  • 14
  • 32
1
vote
1 answer

Round launcher icon in android studio image asset

I noticed that some app have circle shape on any devices. Circle image I want the same for my app. But Image Asset doesn't allow to choose transparent background for adaptive icons. I tried to set transparent png image as background but it fills…
Dima
  • 1,189
  • 1
  • 8
  • 12
1
vote
0 answers

How to implement the same Launcher icon on all Android Devices?

Recently, I am implementing the adaptive launcher icon in my android application. I have successfully implemented it. I ran my application on some Gionee mobile( mostly i run my application on Stock Android) running on customized Android 6.0 like mi…
Aman Verma
  • 3,155
  • 7
  • 30
  • 60
1
vote
1 answer

Adaptive Icon shapes path

This is how Launcher3 defines icon shape path. M50,0L100,0 100,100 0,100 0,0z M50,0 C10,0 0,10 0,50 0,90 10,100 50,100 90,100 100,90 100,50 100,10…
1
vote
0 answers

Lint error when using adaptive launcher icon

Since i'm using an adaptive launcher icon for my app, i get a lint error when building my app. Error: Resources referenced from the manifest cannot vary by configuration (except for version qualifiers, e.g. -v21.) Found variation in anydpi-v26…
Thomas Meinhart
  • 659
  • 2
  • 7
  • 28
1
vote
1 answer

Correct way to use adaptive icons in api 26+

I managed to get my adaptive icons working by creating a folder mipmap-anydpi and placing suggested xml file there (https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive.html#studio) This worked on api 26, but broke icons…
Ilja
  • 44,142
  • 92
  • 275
  • 498
0
votes
0 answers

Android ignoring my app icon xml and using default icon

I have a flutter app that i am testing out on my android phone. The app icon seems to not be recognised. I am getting the default android "alien head" icon for my app and i can't find out why. AndroidManifest.xml
mangusbrother
  • 3,988
  • 11
  • 51
  • 103