gpt4 book ai didi

codenameone - 应用程序图标中的黑色背景颜色

转载 作者:行者123 更新时间:2023-12-02 05:09:21 24 4
gpt4 key购买 nike

我有一个大小为 512 * 512 的 png(透明)应用程序图标图像。它运行良好,即。 Android 中的背景是透明的,但 iOS 中的应用程序有黑色背景。如何在 iOS 中使其透明?

enter image description here

应用程序图标中的黑色背景...

enter image description here

最佳答案

当图标大小不正确时会发生这种情况。 Apple 对图标的形状有非常具体的要求,您可以从周围的所有图标中看到:它们看起来都一样。

iOS 的最佳方法是创建一个完全方形的图像,该图像将自动剪切为正确的尺寸。

假设您想要在 Android 上使用此图标,在 iOS 上使用不同的图标,您可以使用以下提示:https://www.codenameone.com/blog/different-icons.html

在build.xml中找到

<target name="build-for-android-device" ... >

更改行:

icon="androidIcon.png"

然后将现有图标复制到 androidIcon.png 并用方形图标替换 icon.png

关于codenameone - 应用程序图标中的黑色背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49646748/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com