Why does my launcher icon look different?

3.4k views Asked by At

See the image:

enter image description here

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 look at the Google Maps, and Instagram, how do I get my icon to fill the circle?

2

There are 2 answers

5
Rizwan Atta On BEST ANSWER

WONDERING WHY IT DOES THIS REQUIRES VERY SIMPLE EXPLANATION: in new boiler plate code that comes on android studio project generation it makes some extra files in the mip map ! as for the big api based phones have a nature to put a round bracket icon behind every launcher icon of the apps! So All you need to do is very simple if you want to override that! follow the image based foot steps shown below

HERE IS HOW YOU CAN ADD A CUSTOM ICON WITHOUT ANY ROUND whit icon behind it!

STEP ONE! .

go on your any res folder drawable or mipmap and right click and reach to the option shown in the image:

enter image description here

STEP TWO! .

After clicking on your image asset it will ask to make icons for both old and new phones! but we don't have to select that! ok? see the image for it!

enter image description here

STEP THREE! .

CLICK THE ICON TYPE SPINNER(DROP DOWN) and select mipmap legacy only like shown here

enter image description here

STEP FOUR! .

CUSTOMISE YOUR PICTURE LIKE shown here! by back ground etc how ever you like!

enter image description here

STEP FIVE! .

You will see images being saved only in mipmap folder not in the ic_launcher round folder

enter image description here

STEP SIX! .

You can see the image you created as icon in ic_launcher folder but enter image description here

STEP SEVEN! .

THERE IS a GOTCHA STILL SOME IC_LAUNCHER BUILTIN TEMPLATE PROVIDED files are there you have to delete that folder as shown

:It will cause the alert that how we are supposed not to do that but its ok! just follow the step 8 and you will have the icon of your choice no matter what phone you are testing your app on!

enter image description here enter image description here

STEP EIGHT! .

GO TO YOUR MANIFEST FILE AND DELETE THE HIGHLIGHTED line and you are all set! ^_^

enter image description here

2
DAA On

With the release of Android Oreo the launcher icons changed a lot. But with Image Asset Studio (integrated in Android Studio) we can easily generate everything we need (26+ and 25- APIs). Here is explained how these new adaptive icons work.

In this article you can read everything you need to know step by step, but in summary: you need two icons (square and rounded) for 25- APIs, and two layers (background and icon image) for 26+ APIs. Android Studio will generate everything you need if you can provide those elements.