什么是“绘制”文件夹和“绘制-HDPI-LDPI,MDPI-xhdpi”文件夹之间的区别是什么? [英] What's differences between 'drawable' folder and 'drawable-hdpi-ldpi-mdpi-xhdpi' folders?

查看:285
本文介绍了什么是“绘制”文件夹和“绘制-HDPI-LDPI,MDPI-xhdpi”文件夹之间的区别是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要刚刚'绘制'文件夹(如果不存在,我创造)就足以创造合适的图像尺寸率的所有设备?或者我应该创建图像的大小比率为每个文件夹(华电国际,MDPI,LDPI,xhdpi)?

To have just 'drawable' folder(if doesn't exist, I create) is enough to create suitable image size rate for all devices? or Should I create image size rate for each folder(hdpi, mdpi, ldpi, xhdpi) ?

推荐答案

RES /绘制/ 等同于 RES /绘-MDPI / 。后缀名少那里是为了向下兼容,在Android 1.5的点左右,加入密度了。

res/drawable/ is equivalent to res/drawable-mdpi/. The suffix-less name is there for backwards compatibility, before the densities were added in Android 1.5 or thereabouts.

就足以创造合适的图像尺寸率的所有设备?

is enough to create suitable image size rate for all devices?

如果你不介意的Andr​​oid上下缩放图像其它密度,是的。通常,质量将降低进一步的密度是从起点(在这种情况下, -mdpi

If you do not mind Android scaling your images up and down for other densities, yes. Usually, the quality will degrade the further the density is from the starting point (in this case, -mdpi.

我应该创建图像的大小比率为每个文件夹(华电国际,MDPI,LDPI,xhdpi)?

Should I create image size rate for each folder(hdpi, mdpi, ldpi, xhdpi) ?

这取决于图像和自动缩放的结果上。许多开发商将推出一对夫妇的密度,但不是所有的人,并趋向于向更高密度的目标(例如, -xhdpi )。不过,欢迎您做你想做的,只要你觉得你的用户将舒适与您传递给它们的图像质量。

That depends on the image and the results of the automatic scaling. Many developers will ship a couple of densities, but not all of them, and tending to aim towards higher densities (e.g., -xhdpi). But, you are welcome to do what you want, so long as you feel that your users will be comfortable with the image quality that you deliver to them.

这篇关于什么是“绘制”文件夹和“绘制-HDPI-LDPI,MDPI-xhdpi”文件夹之间的区别是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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