如何排序的分辨率和密度图像? [英] How sort images by resolution and density?

查看:136
本文介绍了如何排序的分辨率和密度图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此页表3的底部它说,有小,中,大型和特大型屏幕对于每个密度(LDPI,MDPI,华电国际,xhdpi)的 http://developer.android.com/guide/practices/screens_support.html#support

例如,如果我创建于mdpi正常屏幕(320×480)和MDPI大屏幕(600x1024)我应该把所有的图像在MDPI文件夹两项决议?如果是的话,我应该如何命名这些图片,因为这些都是同一图像大小不同?


解决方案

 我应该把在MDPI文件夹两项决议的所有图像?

是的。的图像的大小应该是所有的屏幕尺寸中是相同的,它们应该只通过密度而变化。

在这种情况下,你应该使用绘制-MDPI 和对待你的布局,以更好地利用你可能有更大的屏幕的额外空间。

On this page in table 3 at the bottom it says there are small, normal, large and extra large screen for each density (ldpi, mdpi, hdpi, xhdpi): http://developer.android.com/guide/practices/screens_support.html#support

For example, if I create mdpi normal screen (320x480) and mdpi large screen (600x1024) should I put all images for both resolutions in mdpi folder? If yes, how should I name those images because those are the same images with different sizes?

解决方案

should I put all images for both resolutions in mdpi folder?

Yes. The size of the images should be the same among all screen sizes, they should vary only by density.

In this case you should use drawable-mdpi and treat your layout to better use the extra space you may have in larger screens.

这篇关于如何排序的分辨率和密度图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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