Force Adaptive Icone to be square(Square)

Asked

Viewed 163 times

1

The best icon format for my application is the rounded square, however in api 26 and 27 we know that android uses a preset adaptive icon (always in circular format) or transforms a non-adaptive icon (circle with white space and small real icon).

After many tests and searches on the internet, I was convinced that I should produce a circular icon, but luckily I noticed that the facebook icon in these Apis keeps its pattern (round square of normal size).

How can I implement this in my application?

1 answer

1

If its application declares in targetSdkVersion API26 or above can do nothing.

How the icon is displayed depends on the mask applied by the application "Launcher". It may be different from device to device and not "always in circular format" like you said.

An adaptive icon consists of two layers, one representing the background(background) to the other foreground(content).
The application "Launcher" apply a mask (square, round or other) on these layers thus determining the final aspect of the icon.

inserir a descrição da imagem aqui

Image Source: Android Guide - Adaptive Icons

Browser other questions tagged

You are not signed in. Login or sign up in order to post.