4

I just swapped my android launcher icon(just learned how). I noticed MANY icons on my android are circular and I am wondering do I have to get an image done like that OR is there way I can have the launcher put the icon(a png with transparent background) and draw a circle for the launcher somehow? (this would be easier that fooling around in some drawing tool as well).

In the app I used CircleImageView for contacts which did the circle but that was in java, and android launcher is xml so not sure if I can use CircleImageView?

Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
  • is it related to [this](https://stackoverflow.com/questions/57568443/recently-used-app-icon-when-app-is-minimized-for-newer-android-devices) ? – a_local_nobody Jul 30 '20 at 13:58

1 Answers1

5

You'll need to use adaptive icons instead of a single image to allow Android to adjust your icon. Essentially this is defining a background drawable and a foreground drawable, and Android will do the rest.

If you right click your res/drawable folder in Android Studio, then select New -> Image Asset, you will see the following wizard. This will let you easily create launcher icons that work in all shapes.

Android Studio image asset wizard

For further information you may find the official Android docs helpful, as well as Nick Butcher's excellent guide.

Jake Lee
  • 7,549
  • 8
  • 45
  • 86