Home > Software engineering >  White border around app icon on Android 10
White border around app icon on Android 10

Time:07-13

I keep getting this white border on my app icon "App Name" - does anyone know how I can get my icon to look like e.g. the "Settings" or "Messages" app icon that doesn't have a white border?

enter image description here

I have tried using the following filenames but these all seem to add a white border:

  • ic_launcher
  • ic_launcher_round
  • ic_launcher_foreground

Here's my app icon:

enter image description here

Environment:

  • Sonim XP8
  • Android 10
  • Android security update: March 1, 2022
  • Build number: 8A.0.5-08-10.0.0-31.11.00

CodePudding user response:

  1. Go to File -> New -> Image Asset. Then choose Launcher Icons as the Asset Type.

  2. Choose a High-res image for the Image file: Next -> Finish to generate icons.

  3. Finally update android:icon name field inside the AndroidManifest.xml file, if required.

CodePudding user response:

Please refer this documentation

https://developer.android.com/codelabs/basic-android-kotlin-training-change-app-icon#5

  • Related