删除白色背景并显示完整尺寸的应用程序图标?

时间:2019-01-20 13:50:40

标签: android image background icons transparency

我正在完成我的应用程序以及如何设置应用程序图标。但是,我每次都失败,并尝试了许多应用程序图标生成器...我的应用程序图标为3000x3000,没有背景。每当我尝试生成应用程序图标时,我都会选择sharpe none。结果始终是相同的(您可以在下面找到一个屏幕)。

如何让我的应用程序图标(例如Google地图图标或时钟图标)? 我想让我的蜜蜂居中,只应根据图标的形状来剪裁背景即可。

这是我使用过的网站,例如:https://romannurik.github.io/AndroidAssetStudio/icons-generic.html

我的AndroidManifest.xml也使用了正确的图标:

<application
  ..
  android:label="@string/app_name"
  android:icon="@mipmap/ic_launcher"

enter image description here

2 个答案:

答案 0 :(得分:1)

最近有人问过这个问题,答案与Android 8.0的新自适应图标有关 您将必须创建自己的自适应图标,有关说明,请参见https://developer.android.com/guide/practices/ui_guidelines/icon_design_adaptive
顺便说一句,3000 x 3000图标很疯狂,没有任何理由。旧版图标应为48dp x 48dp,因此最高分辨率应为192px x 192px。

答案 1 :(得分:0)

我认为问题出在您的手机上;看到gmail图标,它也具有相同的白色背景: see what they say about that here

3000x3000很大。

我认为this可能会有帮助!