如果图像不绘-LDPI发现了什么? [英] What if image is not found in drawable-ldpi?

查看:139
本文介绍了如果图像不绘-LDPI发现了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个形象,是除了绘制,LDPI夹中的所有文件夹中。然后,如果我将运行我的LDPI设备的项目,然后从哪个文件夹将尝试寻找形象?或我的应用程序将简单地得到崩溃?我没有在我的文件夹绘制这一形象了。

I have one image that is in all folder except drawable-ldpi folder. Then if i will run my project in ldpi devices then from which folder it will try to find that image? or my app will simply get crash? I am not having this image in my drawable folder,too.

推荐答案

这是不是需要有图像,所有的密度,只有一个就够了。在需要时,系统将它的规模向上/向下。所以最好的办法是有支持的最高密度图像( xhdpi或xxhdpi )。

It is not required to have images for all the densities, only one is enough. The system will scale it up/down when needed. So the best approach is to have images for the highest density supported (xhdpi or xxhdpi).

这将扩大,但是当用LDPI电话试图加载xhdpi或xxhdpi图像,你可能会遇到问题。

It will scale but you might run into problems when a phone with a ldpi tries to load xhdpi or xxhdpi images.

谷歌的建议是当你在每个分辨率创建不同的图像,而不只是调整是有益的。

Google's recommended that it is useful when you are creating different images for each resolution and not just resizing it.

和也是在present时,Eclipse将创建启动程序图标,它仅适用于 MDPI,华电国际,xhdpi创建它们,和xxhdpi 。在此基础上创作的 LDPI 图标是没有必要的,而且于mdpi 会自动缩小。

And also in present when Eclipse creates launcher icons, it only creates them for mdpi, hdpi, xhdpi, and xxhdpi. Based on that creating ldpi icon is not necessary and that mdpi will be scaled down automatically.

在您的情况下,它会尝试找到MDPI文件夹中的形象。

这篇关于如果图像不绘-LDPI发现了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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