Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App icon size on Android 8.0 if targetSdkVersion >= 26

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?

like image 574
activity Avatar asked Dec 10 '17 17:12

activity


People also ask

What size are app icons on Android?

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.

How do I fix app size on Android?

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.

What is the best size for an app icon?

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).


1 Answers

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.

like image 131
ianhanniballake Avatar answered Oct 11 '22 02:10

ianhanniballake