提供MDPI和HDPI资源忧患意识 [英] The sense of providing MDPI and HDPI resources

查看:143
本文介绍了提供MDPI和HDPI资源忧患意识的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关每一个应用程序我开发我提供MDPI,华电国际,xhdpi,xxhpi资源(xxxhdpi也启动器图标)。越来越少的设备是MDPI /华电国际,这就是为什么我想知道是否有任何意义来提供这些资源?无论xhdpi和xxhdpi资源可相应容易地缩小到MDPI和华电国际(比0.5)。

For every app I'm developing I provide mdpi, hdpi, xhdpi, xxhpi resources (also launcher icon for xxxhdpi). Less and less devices are mdpi/hdpi that's why I'm wondering if is there any sense to provide these resources? Both xhdpi and xxhdpi resources can be easily scaled down to mdpi and hdpi accordingly (ratio 0.5).

该文件规定:

例如,寻找一个低密度资源时,这是不可用时,系统prefers按比例缩减的资源的高密度的版本,因为该系统可以很容易地扩展了高密度的资源下降到由0.5的因子,具有较少的工件,与由0.75的因子缩放中密度资源低密度

For example, when looking for a low-density resource and it is not available, the system prefers to scale-down the high-density version of the resource, because the system can easily scale a high-density resource down to low-density by a factor of 0.5, with fewer artifacts, compared to scaling a medium-density resource by a factor of 0.75.

我还没有发现任何描述文章内置相比,'本土'资源对于一个给定的密度缩放机制。

I haven't found any articles describing the built-in scaling mechanism in comparison to 'native' resources for a given density.

是否有提供MDPI和华电国际的资源,这些天什么好处?

Are there any benefits for providing mdpi and hdpi resources these days?

推荐答案

我不认为这是值得每一个密度提供资源。我有很多的资源的应用程序,我决定尝试提供的 xxhpi 资源。

I don't think it is worth to provide resources for every density. I have an app with a lot of resources, and I decided to try providing only xxhpi resources.

我没看到在较低的分辨率设备的任何差别,然后我就能够从7.3MB减少.apk文件以4.4MB!

I didn't see any difference in lower resolution devices, and I was able to reduce the .apk from 7.3MB to 4.4MB!

本说,就算你输了(比方说)质量的15%,这将通过降低.apk文件大小仅赔偿,因此一个下载增加

This said, even if you lose (let's say) 15% of quality, it will compensate only by reducing the .apk size, and consequently an increase of downloads!

这篇关于提供MDPI和HDPI资源忧患意识的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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