Android 图标:主屏幕与应用程序菜单

发布于 2024-10-17 21:10:37 字数 489 浏览 5 评论 0原文

在我的 Samsung Galaxy 上,主屏幕上显示的应用程序图标通常与应用程序菜单上显示的图标不匹配。

首先,我想知道这是否是三星/Galaxy(或 Android 手机的某些子集)特有的,或者是否是跨平台的?其次,我想知道如何在我的 Android 项目中进行设置。

为了说明我的要求,请参考下图:

image icon 图标 1 和 2 是许多第三方应用程序的典型图标:在主屏幕上,图标透明度受到尊重,但在应用程序菜单上,图标覆盖在按钮图形上。在我的手机上,后者通常是脏绿色的放射状图案。

然而,一些应用程序已经超越了这种行为:图标 3 和 4 显示 MapQuest 已经能够为按钮指定不同的基色(尽管是相同的放射状图案);图标 5 和 6 显示了按钮图像或应用程序菜单图标的完整替换。

谁能解释一下我需要做什么才能在项目中指定两种形式的图标?

提前致谢。

On my Samsung Galaxy, application icons displayed on my Home Screen often don't match those displayed on the Applications Menu.

Firstly, I want to know if this is peculiar to Samsung/Galaxy (or some subset of Android phones), or if this is across the platform? Secondly, I'd like to know how to set this up in my Android project.

To illustrate what I'm asking, please refer to the following image:

image icons
Icons 1 and 2 are typical of a lot of third-party apps: on the Home Screen the icon transparency is honoured, but on the Applications Menu the icon is over-layed onto a button graphic. On my phone the latter is more-often-than-not a dirty-green, radial pattern.

Some apps have over-ridden this behaviour, however: icons 3 and 4 show that MapQuest has been able to specify a different base colour for the button (same radial pattern, though); and icons 5 and 6 show what appears to be a complete replacement of the button image or Application Menu icon.

Can anyone explain what I need to do to specify both forms of the icon in my project?

Thanks, in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

甜尕妞 2024-10-24 21:10:37

这种特殊效果是三星主屏幕用户界面的一部分。它在 Galaxy 平板电脑上做了类似的事情。

图标 3 和 4 显示 MapQuest 已经能够为按钮指定不同的基色

我不认为他们指定了,我想这要么是运气好(在 Galaxy Tab 上有很多颜色蓝色、绿色、橙色,粉红色等......它们似乎没有任何类型的图标使图标获得哪种颜色的模式),或者它可以告诉它们的图标也是绿色的,因此它会改变颜色,这样你就不会'最终在绿色背景上出现一个绿色图标。

图标 5 和 6 显示的是按钮图像或应用程序菜单图标的完整替换。

我认为他们无法控制这一点。我认为这只是系统使用的另一个可能的背景。

谁能解释一下我需要做什么才能在项目中指定两种形式的图标?

据我所知,您不能将背景设置为第三部分主页/启动器替换应用程序。在这种情况下是三星的(但市场上还有其他家庭和发射器替代品,如果他们愿意的话也可以使用这样的效果。)

That particular effect is part of the Samsung Homescreen UI. It does something similar on the Galaxy Tablets.

icons 3 and 4 show that MapQuest has been able to specify a different base colour for the button

I don't think that they specified that I imagine that it is either luck of the draw(on Galaxy Tab there are many colors blue,green, orange, pinkish, etc...they don't appear to have any sort of pattern for which icons get which color), or it can tell that their icon is green also, and because of that it changes colors so that you don't end up with a green icon on top of a green backdrop.

and icons 5 and 6 show what appears to be a complete replacement of the button image or Application Menu icon.

I don't think they had control over that. I think it is just another one of the possible backdrops that the system uses.

Can anyone explain what I need to do to specify both forms of the icon in my project?

As far as I know you can't the backdrops are up to the 3rd part home/launcher replacement app. In this case Samsung's (but there are other home and launcher replacements on the market that could also use an effect like this if they wanted.)

城歌 2024-10-24 21:10:37

谢谢,蒂姆 - 进一步的尝试揭示了更多...

由于重构了我的包名称,我最终在我的应用程序菜单上得到了我的应用程序的两个副本(具有相同的图标)。

正如蒂姆建议的那样,第二个图标有一个不同的、显然是随机分配的背景。然而,按钮颜色似乎与我的图标中的任何颜色无关,因为相同的图标被分配了不同的背景。

Thanks, Tim - further playing around has revealed more...

As a result of refactoring my package names, I ended up with two copies of my app (with identical icons) on my Applications Menu.

As Tim suggested might happen, the second icon has a different, apparently randomly allocated, background. It would appear that the button colour is unrelated to any colour in my icon, however, as the same icon got allocated a different background.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文