为什么我们(必须)使用不同的启动器图标(xhdpi,hdpi等) [英] Why do we (have) to use different launcher icons (xhdpi, hdpi, etc)

查看:104
本文介绍了为什么我们(必须)使用不同的启动器图标(xhdpi,hdpi等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道为什么我们在Android中使用不同的启动器图标(大小)。当前,您具有将图标的大小调整为:

I was wondering, why are we using different launcher icons (sizes) in android. Currently you "have" to resize your icon to:

LDPI - 36 x 36
MDPI - 48 x 48
HDPI - 72 x 72
XHDPI - 96 x 96

并将它们放入所需的文件夹。但是,如果只在您的android应用程序中放置一个xhdpi图标,并且仅将ldpi,mdpi和hdpi文件夹留空,这真的很重要吗。

And put them in the desired folder. But does it really matter if you would only put a xhdpi icon in your android application, and if you just leave the ldpi, mdpi and hdpi folder empty.

如果尝试在mdpi设备上具有此配置的应用程序(仅xhdpi图标),会自动使用xhdpi图标(我假设设备会自动缩放图标),而且看起来很正常。

If you try the app with this configuration (only a xhdpi icon) on a mdpi device, automatically the xhdpi icon is used (I assume the device scales the icon automatically), and it looks just normal.

那么,这将阻止我们仅制作xhdpi图标。仍然会为每个设备(当然是xxhdpi除外)显示一个清晰的应用程序图标。

So what would stop us from only making a xhdpi icon. It will still result in a sharp app icon for every device (except xxhdpi ofcourse).

推荐答案

扩展开销。您的图标不仅可以被您的应用使用,还可以被其他几个人使用。像启动器一样,为已安装的软件设置应用程序,可以在许多地方共享菜单。

Rescaling overhead. Your icons may be used not only by your app, but also by few others. Like launchers, setting apps for installed software, share menus in many places.

请注意,分辨率越高,硬件功能越强大。分辨率越低,硬件功能越弱。您可以轻松进行锻炼。在Gimp中以3000x3000的分辨率打开图像。缩小到50%。即使在高端台式机上,也要花费一些时间。不会,但是会。

Note that the higher the resolution, the more powerful the hardware. The lower the resolution, the less powerful the hardware. You may take an easy exercise. Open up an image in Gimp with resolution of 3000x3000. Scale it down to 50%. Even on a high end desktop it will take some time. Not long, but will.

这篇关于为什么我们(必须)使用不同的启动器图标(xhdpi,hdpi等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆