简体   繁体   English

Android 10 上应用程序图标周围的白色边框

[英]White border around app icon on Android 10

I keep getting this white border on my app icon "App Name" - does anyone know how I can get my icon to look like eg the "Settings" or "Messages" app icon that doesn't have a white border?我的应用程序图标“应用程序名称”上不断出现这个白色边框 - 有谁知道我怎样才能让我的图标看起来像没有白色边框的“设置”或“消息”应用程序图标?

在此处输入图像描述

I have tried using the following filenames but these all seem to add a white border:我尝试使用以下文件名,但这些似乎都添加了白色边框:

  • ic_launcher ic_launcher
  • ic_launcher_round ic_launcher_round
  • ic_launcher_foreground ic_launcher_foreground

Here's my app icon:这是我的应用程序图标:

在此处输入图像描述

Environment:环境:

  • Sonim XP8索尼姆 XP8
  • Android 10安卓 10
  • Android security update: March 1, 2022 Android 安全更新:2022 年 3 月 1 日
  • Build number: 8A.0.5-08-10.0.0-31.11.00内部版本号:8A.0.5-08-10.0.0-31.11.00
  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.如果需要,最后更新AndroidManifest.xml文件中的android:icon名称字段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM