[英]Android launcher icon crops into my icon image
I build my Android app with VS2017 Xamarin, but I'm not sure that has anything to do with my problem. 我使用VS2017 Xamarin构建我的Android应用程序,但我不确定这与我的问题有什么关系。 I have built an app icon (PNG) that looks like this: 我已经构建了一个应用程序图标(PNG),如下所示:
But when I launch my app in an Android emulator, it always crops out some of my icon, thusly: 但是当我在Android模拟器中启动我的应用程序时,它总会裁掉我的一些图标,因此:
Notice that a bit of the truck tires and truck top get cropped out. 请注意,一些卡车轮胎和卡车顶部被裁掉了。 But this makes no sense because as you can see in photoshop, there is plenty of empty space between the truck icon and the edges of the square. 但这没有任何意义,因为正如你在photoshop中看到的那样,卡车图标和广场边缘之间有很多空的空间。 I want that space/margin to be preserved inside the icon, and not so aggressively cropped. 我希望将空间/边距保留在图标内,而不是如此积极地裁剪。
I keep adding more and more space, but something (Android OS? Xamarin compiler? VS2017?) seems to be ignoring the margin/space and trying to aggressively crop right up to my icon. 我不断添加越来越多的空间,但是某些东西(Android OS?Xamarin编译器?VS2017?)似乎忽略了边距/空间并试图积极地裁剪到我的图标。
How can I solve this? 我怎么解决这个问题?
It's because your app is trying to look for a Round Icon file as you can see in this Microsoft blog post . 这是因为您的应用程序正在尝试查找圆形图标文件,您可以在此Microsoft博客文章中看到。 The easiest way to solve all your Icon issues for Android, including the pesky adaptive icons, is to use Android Studio. 解决Android所有Icon问题的最简单方法,包括讨厌的自适应图标,就是使用Android Studio。 You just install the free application (Windows/Mac) and then 您只需安装免费应用程序(Windows / Mac)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.