不同的资源WVGA800和WVGA854? [英] Different resources for WVGA800 and WVGA854?

查看:101
本文介绍了不同的资源WVGA800和WVGA854?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

得到这个非常愚蠢的问题:
可以找到Android的文件夹WVGA800资源的正确名称。

我创建了一个文件夹WVGA854:绘制正常长,华电国际
它的工作完全罚款。
对于WVGA800我已经试过绘制正常-notlong - 华电国际 - 仿真器和手机仍然得到资源
'绘制',甚至是'绘制,正常长华电国际
。 尝试使用drawble - 华电国际,绘制-notlong - 华电国际 - 实在不行,就一直使用绘制资源

应如何WVGA800文件夹命名?

UPD:
使用
支持屏安卓anyDensity =真
        机器人:largeScreens =真
        机器人:normalScreens =真
        机器人:smallScreens =真/>
Didnt解决问题。
有没有办法进行调试资源文件夹时,为什么?

Got this really stupid problem:
Can find the proper name for the android folder for WVGA800 resources.

I've created a folder for WVGA854: drawable-normal-long-hdpi
It worked totally fine.
For WVGA800 I've tried 'drawable-normal-notlong-hdpi' - emulator and handset still gets resources from
'drawable', not even 'drawable-normal-long-hdpi'.
Tried using 'drawble-hdpi', 'drawable-notlong-hdpi' - nothing works, it keeps using 'drawable' for resources.

How should the folder for WVGA800 be named?

UPD:
Using
supports-screens android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"/>
Didnt solve the problem.
Is there a way to debug what resource folder is used and why?

推荐答案

安卓不喜欢iPhone。在iPhone它的工作原理,使全屏幕图像的两个支持的分辨率,并依靠这一点。在Android中,这是行不通的。有太多的决议,更可以出来了一周的任何一天。该解决方案的话,就是要真正使布局和图像设备无关。有时候,这需要创造性的解决方案,但在任何情况下,它需要换个思路。

Android is not like the iPhone. In iPhone it works to make full-screen images for the two supported resolutions, and rely on that. In Android, it doesn't work. There are too many resolutions, and more can come out any day of the week. The solution, then, is to really make the layouts and images device independent. Sometimes this requires creative solutions, but in any case it requires a change in thinking.

例如,我们试图解决同样的问题全屏初始页面。我们有一个标志,梯度,和一组对象在图象的底部。对于我们的解决办法是分割这三件事情,允许梯度被拉伸,然后在中心定位标志,并在底部的对象。这是需要的Andr​​oid解决方案的类型,这将节省您不必切不同的图形的每一项决议。

For example, we were trying to solve this same problem for a full-screen splash page. We had a logo, a gradient, and a set of objects at the bottom of the picture. The solution for us was to split these three things, allow the gradient to be stretched, and then position the logo in the center, and the objects at the bottom. This is the type of solution that is required in Android, and it will save you from having to cut a different graphic for every resolution.

您也可以尝试九补片图像的一些这方面的。对于我们的情况下,除了一个事实,即图像包含渐变这一切都很好工作。

You can also try nine-patch images for some of this. This would have worked great for our case except for the fact that the image included a gradient.

这篇关于不同的资源WVGA800和WVGA854?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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