如何在 Android 中设置正确的应用程序图标大小,包括 Amazon Kindle Fire?

发布于 2025-01-06 12:33:04 字数 589 浏览 2 评论 0原文

到目前为止,我一直使用下一个应用程序图标尺寸:

  • ldpi 36x36
  • mdpi 48x48
  • hdpi 72x72
  • xhdpi 96x96
  • xxhdpi 144x144

但是,对于 Amazon Kindle Fire,情况有所不同,因为它在“轮播”上显示图标,从而放大了它们很多。这意味着图标非常模糊,因为它使用 mdpi 图标。

我在网上查了一下,我发现对于Kindle Fire,我需要在drawable-mdpi文件夹上放置一个200x200的图标。然而,这可能会导致其他一些 mdpi 设备(例如 optimus 设备)出现奇怪的情况。例如,如果我在通知中使用该图标(无论是临时图标还是粘贴在通知栏中的图标),它都会被放大/裁剪。

我应该怎么办?我不喜欢为 Android 市场制作一个版本而为 Amazon 市场制作一个不同的版本,或者以某种方式将 200x200 图标设置为仅适用于 Kindle Fire。 原因是新的 Android 设备总是会被创建,而我不能仅仅为了检查它们在它们上是否看起来也很好而购买它们。

有没有办法使用单个、非常高质量的应用程序图标?

So far, I've always used the next application icons sizes :

  • ldpi 36x36
  • mdpi 48x48
  • hdpi 72x72
  • xhdpi 96x96
  • xxhdpi 144x144

However, for Amazon Kindle Fire, the situation is different, since it shows the icons on a "carousel", which enlarges them a lot. This means a very blurry icon since it uses the mdpi icon.

I've checked on the internet, and I saw that for the Kindle Fire, I need to put a 200x200 icon on the drawable-mdpi folder. However, this can result in weird things on some other mdpi devices, like the optimus one. For example, if I use the icon in a notification (either the temporary one or the one that sticks in the notification bar), it is enlarged/cropped.

What should I do? I don't like the idea of making a version for the android market and a different one for the Amazon market, or somehow set the 200x200 icon to specifically work only for Kindle Fire.
the reason is that new Android devices are always created, and I cannot afford to buy them all just to check that it looks fine on them too.

Is there maybe a way to use a single, very high quality app icon?

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

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

发布评论

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

评论(4

追风人 2025-01-13 12:33:04

根据Kindle Fire开发教程

提示 6:模糊应用程序图标
如果您通过 ADB 或其他方法加载应用程序,您可能已经注意到,与通过 Kindle Fire 界面显示的应用程序和书籍相比,主屏幕上的应用程序图标又小又模糊。事实证明,通过 Amazon 购买的应用程序和媒体的图形是从 Web 服务加载的,而不是从清单文件引用的。因此,一旦您在 Amazon Appstore 上获取应用程序并通过商店下载,您的应用程序图标图形就会正确显示。

According to a Kindle Fire development tutorial :

Tip 6: Fuzzy App Icons
If you're loading apps through ADB or another method, you may have noticed that the app icons on the home screen are small and fuzzy compared to the apps and books that show up through the Kindle Fire interface. As it turns out, the graphics for apps and media purchased through Amazon are loaded from a web service rather than referenced from the manifest file. So, once you get your application on the Amazon Appstore, and download it via the store, your application icon graphics appear correctly.

栖竹 2025-01-13 12:33:04

创建资源drawable-large-mdpi文件夹并将200x200图标放在那里,它可能会起作用。

我还建议检查此处

create folder to resource drawable-large-mdpi and put 200x200 icon there, it may work.

Also i recommend to check here

后来的我们 2025-01-13 12:33:04

只是为了让您意识到并提醒:

kindle fire 上的轮播图标应参考Amazon Guide Lines

Kindle Fire (1st Gen) : 322x322 px

Kindle Fire :  365x365 

Kindle Fire HD 7" : 425x425

Kindle Fire HD 8.9 : 675x675

但根据 android 标准,启动器图标大小不是而不是:

ldpi (120 dpi) (Low density screen)             36 x 36 px 
mdpi (160dpi)(Medium density screen)            48 x 48 px 
hdpi (240 dpi)(Highdensity screen)              72 x 72 px 
xhdpi (320 dpi) (Extra-high density screen)     96 x 96 px

我也尝试使用以下,但仍然不确定的行为

custom drawable "drawable-1024x600-v10" with ic_launcher.png for KindleFire 1 st Gen

custom drawable "drawable-1024x600-v15" with ic_launcher.png for KindleFire 2nd Gen

custom drawable "drawable-1280x800" with ic_launcher.png for  KindleFire HD-7'

custom drawable "drawable-1920x1200" with ic_launcher.png for  KindleFire HD-8.9'

Just to make you aware and remind :

The Carousel icon on the kindle fire should be as referred to the Amazon Guide Lines :

Kindle Fire (1st Gen) : 322x322 px

Kindle Fire :  365x365 

Kindle Fire HD 7" : 425x425

Kindle Fire HD 8.9 : 675x675

But as per android standards , Launcher Icon Size is non rather than :

ldpi (120 dpi) (Low density screen)             36 x 36 px 
mdpi (160dpi)(Medium density screen)            48 x 48 px 
hdpi (240 dpi)(Highdensity screen)              72 x 72 px 
xhdpi (320 dpi) (Extra-high density screen)     96 x 96 px

I also tried to use following , but still un-certain behavior

custom drawable "drawable-1024x600-v10" with ic_launcher.png for KindleFire 1 st Gen

custom drawable "drawable-1024x600-v15" with ic_launcher.png for KindleFire 2nd Gen

custom drawable "drawable-1280x800" with ic_launcher.png for  KindleFire HD-7'

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