My app has a square icon. When targetSdkVersion
< 26 the app icon is shown correctly on all devices. But with targetSdkVersion
>= 26 the app icon is shown inside a white circle on Android 8.0 devices.
Is there a way to remove the white circle?
On Android devices, launcher icons are generally 96×96, 72×72, 48×48, or 36×36 pixels (depending on the device), however Android recommends your starting artboard size should be 864×864 pixels to allow for easier tweaking.
Scroll down and select Display to open the Display Settings menu. Select Advanced to expand that section. In the Advanced Display settings menu, select Display size. On the Display Size window, move the slider at the bottom to adjust the size of screen items.
Android recommends your starting app size to be 864×864 pixels because it will make it easier to tweak the design if need be. However, the majority of devices will use 36×36, 48×48, 72×72, or 96×96 pixels. (Note that Android app icons must be saved as PNG files, not JPEG).
Per the Understanding Android Adaptive Icons blog post:
Indeed Google’s launcher will start placing icons of apps which target Android-O but do not supply an adaptive icon onto a background (scaling down their non-adaptive icon).
You must add an adaptive icon to your app once you target API 26. As adaptive icons change their outer shape based on what device they are running on, you cannot rely on your launcher icon always being a square.
The Designing Adaptive Icons blog post and Implementing Adaptive Icons blog post goes through more details on how you might take advantage of adaptive icon's separate background and foreground layers and how to implement an adaptive icon in your app. Android Studio also contains tooling to help via the New > Image Asset wizard as described in the Create app icons with Image Asset Studio article.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With