How to change the ic_launcher_round.png folder content?
Asked Answered
B

3

17

I am having difficulties in changing the icon of an Android app. I have followed these instructions:

  1. Right click on the project
  2. Select New -> Image Asset
  3. Select 'Asset Type' as Image
  4. Select Path of and .png image
  5. Optional: padding, trimming etc.
  6. Next and Finish

This changed the icon in minmap/ic_launcher.png content, however, this does not change the minmap/ic_launcher_round.png folder content. This results, if the Android System is configured to show round icons, the icons to be shown in this folder: minmap/ic_launcher_round.png. But I could not find the way of changing the content of that particular folder.

I have tried to select a round shaped image in the Path, but still did not work.

If I set my Android phone to display app launcher icons as square, I see the desired icon, however, if it is changed to round, then I cannot see the my desired icon.

Please guide how to change the round ic_launchers.

Benitez answered 28/8, 2017 at 6:11 Comment(3)
have you included the roundicon in your manifest @dhssa's ?Kremlin
As a workaround you can change the name manually from ic_launcher to ic_launcher_round and then press next and finish.Dys
I have included the round in the Manifest fileBenitez
W
37

The latest Android Studio generates round icons for you: Right-click the res folder, select Image Asset:

round, square, etc, icon formats image asset

See https://dev.to/_s_farias/how-to-create-adaptive-icons-for-android-using-android-studio-459h for a more detailed walkthrough (Credit of @Guillaume Raymond).

Whitehorse answered 28/2, 2018 at 3:56 Comment(1)
a good walkthrough that helps me : dev.to/_s_farias/…Udella
S
20

You can try to go on AnroidManifest.xml and change path

android:roundIcon="@mipmap/ic_launcher_round" 

to

android:roundIcon="@mipmap/ic_launcher"
Slalom answered 19/10, 2017 at 7:44 Comment(0)
D
0

Compile with 25 api and use "Legacy only"

Distrait answered 27/6, 2018 at 11:37 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.