Android的多屏幕支持android系统:540x960问题 [英] Android Multiscreen Support in android : 540x960 issue

查看:169
本文介绍了Android的多屏幕支持android系统:540x960问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序支持3类密度LDPI(120),MDPI(160),华电国际(320)和我们有三个文件夹资源(LDPI,MDPI,华电国际)。

My application is supporting 3 type of density ldpi (120),mdpi(160),hdpi(320) and for that we have three folder for resources (ldpi,mdpi,hdpi).

但我的问题是发生在HTC感觉XE(540x960),具有密度〜256 dpi.and我的资源被拉伸。

But my problem is occurring in HTC sensation XE (540x960) having density ~256 dpi.and my resources is stretched.

在清单文件

<supports-screens android:xlargeScreens="false" /> 

意味着我不支持的XLARGE屏幕,并540x960进来的高密度??。 我该如何解决这个问题???

means i am not supporting for xlarge screen so does 540x960 come in high density??. How can i overcome this problem???

Android的多屏幕支持问题说:您也可以使用密度的组合和大小预选赛,但仍然留下了一些空间,两个不同的分辨率落入同一个桶。

应该是什么drawble文件夹的这种分辨率的名字? 或是否有任何其他方式短路这个问题。

What should be the name of drawble folder for this kind of resolution?? or is there any other way to short out this issue.

编辑:我的问题不在于布局,我的问题540x960进来华电国际,但我的华电国际drawbles的设计与480×800

EDIT : My problem is not with layout, my problem 540x960 come in HDPI but my hdpi drawbles are designed related to 480x800

帮助我..

在此先感谢。

推荐答案

您的问题是,你设计你的位图特定的屏幕尺寸,而不是屏幕像素密度。

Your problem is that you have designed your bitmaps for a particular screen size rather than screen density.

说白了说,您不应该这么做。有一个巨大的不同的外形尺寸和屏幕尺寸的数量在那里,你不能希望有图形尺寸适合所有的人。所以你解决这个问题的540x960的屏幕......什么,然后用你的用户谁是对的480x854显示屏(最华电国际摩托罗拉设备)?你会包括不同的图形1024x720及1280x720。显示,如果你正在开发的是什么?那么1280×800?

Plainly put, you should not do that. There are a huge number of different form factors and screen sizes out there, and you cannot hope to have graphics sized for all of them. So you fix this issue for 540x960 screens... what then with your users who are on 480x854 displays (most hdpi motorola devices)? Will you include different graphics for 1024x720 and 1280x720 displays if you're developing for that? What about 1280x800?

当然 - 它可以是一个痛苦的处理这些问题,但是这是我们支付设备的多样性价格。而谷歌已经在我们的处置应对这种提供了有力的工具相当数量。

Granted - it can be a pain to deal with these issues, but that is the price we pay for diversity of devices. And Google has provided a fair amount of powerful tools at our disposal to deal with this.

当你正在设计针对Android的应用程序,你需要考虑的设计,如果你是设计一个网站 - 没有桌面(或IOS)计划。对您用于设计一个网站的招数全部(或大部分)也适用在这里 - 。再加上你有密度的意识和9.patch工具

When you are designing an app for Android, you need to think of the design as if you were designing a website - not a desktop (or IOS) program. All (or most) of the tricks that you use for designing a website also apply here - plus you have the density-awareness and 9.patch tools.

如果你真的不能没有搞乱它调整图形/布局到屏幕上,你可以随时中心显示屏上的布局(或对齐左或右,这取决于你认为最好看)。

And if you really cannot adjust your graphics/layout to the screen without messing it up, you can always center the layout on the display (or align it left or right, depending on what you think looks best).

编辑:

正如我上面提到的,核心的,以灵活的用户界面设计,Android是认为您的应用程序就像一个网站。罗马Nurik有一篇文章对Android的博客讨论这个。

As I mention above, the core to flexible UI design in Android is to think of your app like a web site. Roman Nurik has an article discussing this on the Android blog.

http://android-developers.blogspot.com/2011/09/thinking-like-web-designer.html

除此之外,它主要包括在机器人站点等

Apart from that, it is mostly covered by the Android site, etc.

http://developer.android.com/training/multiscreen/index.html

使用正确的布局和9,补片图像(并不总是 - 有时静态图像越好)将允许您创建一个好看的所有手机的设计。但你必须认识到, - 类似的设计在浏览器的网站 - 你不必也不可能有100%的控制权事物是如何显示的每一个设备上。你需要达到什么样的是,它的时候,你没有预料到预先的设备上显示的仍然是访问,好看偶数。

Using the right layouts and 9-patch images (not always - sometimes static images are better) will allow you to create designs that look good on all phones. But you have to realize that - like a website designed in a browser - you do not and can not have 100% control over how things are displayed on every single device. What you need to achieve is that it is still accessible and good-looking even when displayed on a device that you did not anticipate beforehand.

这篇关于Android的多屏幕支持android系统:540x960问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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