机器人 - 如何findout最佳匹配 [英] android - How to findout the best match

查看:233
本文介绍了机器人 - 如何findout最佳匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的设备配置是大MDPI。但是,在我的应用程序,我有自己的设计只为小LDPI,正常MDPI 。在这里,如何findout这种情况的最佳匹配。我想我从小LDPI收集图像,因为我们的precedence包含小first.please的看到这个链接。这样对吗?请任何人可以帮助我。

My device configuration is large-mdpi. But in my app, i have the images only for small-ldpi,normal-mdpi. Here how to findout the best match for this. i think i collects the images from the small-ldpi because our precedence contains small as first.please see this link. is it right? please can anybody help me.

感谢。

推荐答案

不要把你的文件夹绘制大小预选赛。只要绘制-LDPI和绘制-MDPI。

Don't put size qualifiers on your drawable folders. Just make drawable-ldpi and drawable-mdpi.

编辑:也许我回答得太快。你实际上是在相同的密度对小型和大型屏幕上不同的图像?在这种情况下,我的建议是总是有一个夹具有更一般的资格。这有点像默认在switch语句。

Maybe I answered too quickly. Do you actually have different images for small and large screens at the same density? In that case, my advice is to always have a folder with a more general qualification. It's kind of like default in a switch statement.

在您的实例,我会去的:

In your instance, I'd go with:

drawable-ldpi
drawable-mdpi
drawable-large-ldpi

这篇关于机器人 - 如何findout最佳匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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