Android Galaxy Tab:为什么启动图标周围有粉红色边框?
我遵循了 Android 的图标设计指南,所以我有不同大小的图标:
drawable-hdpi (96x96)
drawable-hdpi (72x72)
drawable-ldpi (36x36)
drawable-mdpi (48x48)
但在 Samsung Galaxy Tab 上,图标有一个奇怪的紫色/粉红色边框。游戏《愤怒的小鸟》似乎也存在同样的问题。 Facebook 能够将其更改为蓝色。那么这个边框是什么以及如何删除它呢?
屏幕截图
I followed the icon design guidelines from android and so I have icon in different size:
drawable-hdpi (96x96)
drawable-hdpi (72x72)
drawable-ldpi (36x36)
drawable-mdpi (48x48)
But on the Samsung Galaxy Tab the icon gets a weird purple/pink-ish border. The Game 'Angry Birds' seems to have the same problem. Facebook was able to change it to blue. So what is this border and how can I remove it?
Screenshot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我观察到,即使图标是用透明背景渲染的,选项卡也会选择一些背景颜色来框架您的图标:日历具有深色框架,gmail 具有与愤怒的小鸟相同的粉红色/紫色,而我的Nexus 1 上具有透明背景/无边框的图标具有奇怪的蓝色。事实上,选项卡上的所有图标都有背景和边框。我不得不得出结论,没有办法摆脱它,而且目前还没有公开的算法来说明它如何选择颜色。
I've observed that the Tab picks some background color to use to frame your icon, even if the icon is rendered with a transparent background: the calendar has a dark frame, gmail has the same pinkish/purple color as Angry Birds, and my icons which have transparent backgrounds/no borders on the Nexus 1 have weird blue colors. In fact, ALL of the icons on the Tab have a background and border. I've had to conclude there is no way to get rid of it, and there is currently no published algorithm as to how it picks the color.
这个答案来自
用户
@int ermedi_8
提问
Android 应用程序中可以消除图标边框吗?
似乎可行在我的三星设备上:我不知道它是否适用于其他品牌。当然,它只对您自己的应用程序有帮助,您可以将代码放入 AndroidManifest.xml 中。
引用:-
虽然它很旧,但也许它仍然对某人有帮助:
感谢 @deloreyk 关于 TouchWiz 的提示,我找到了这个网站,其中 Josh Barton 建议向 AndroidManifest.xml 添加元标记
This answer from
user
@int ermedi_8
to question
Can Icon Border Be Eliminated In Android App?
seems to work on my Samsung device: I don't know whether it works on other brands. Of course it only helps for your own apps where you can put code into AndroidManifest.xml.
Quote:-
Though it is old, maybe it still helps someone:
Thanks to @deloreyk hint about TouchWiz i found this site where Josh Barton suggests to add a meta tag to your AndroidManifest.xml