对于不同的屏幕分辨率设计UI [英] Designing UI for different screen resolutions
问题描述
我做了UI设计的应用程序,我已经包括在华电国际,LDPI所有的图像,并MDPI绘制文件夹,它适用于小屏幕分辨率pretty不错,但其对大屏幕所迷离图像I意味着480X800的分辨率,我怎么能纠正它。
I am doing the UI designing for an app,I have included all the images in hdpi,ldpi,and mdpi drawable folders,It works pretty good for small screen resolution but having a blured image for the big screen i mean for the resolution of 480X800,How can i rectify it
推荐答案
有特定的Android API调用,可以在运行时告诉你手机有什么样的密度和(小/大/正常)的屏幕尺寸。但是,作为一名开发人员,我们应该根本不需要担心个别手机。所有我们需要做的是有LDPI / MDPI /华电国际的资产和小/正常/大布局中的APK。 Android的内部处理一切。
There are specific Android API calls that can, at runtime tell you what density and (small/large/normal) screen size a handset has. However, as a developer we should not need to worry about individual handsets at all. All we need to do is to have ldpi/mdpi/hdpi assets and small/normal/large layouts in the apk. Android internally handles everything.
不要忘记让Android的如何确定要使用的资产和走样的这样的。
Dont forget to get an indepth understanding of how Android determines which assets to use and aliasing like this.
的定义是:
XLARGE屏幕至少960dp点¯x720dp。
xlarge screens are at least 960dp x 720dp.
大屏幕至少640dp点¯x480dp。
large screens are at least 640dp x 480dp.
标准屏幕至少470dp点¯x320dp。
normal screens are at least 470dp x 320dp.
小屏幕至少426dp点¯x320dp。 (Android版目前不支持比这更小的屏幕。)
small screens are at least 426dp x 320dp. (Android does not currently support screens smaller than this.)
下面是如何工作与真正的屏幕更多的例子:
Here are some more examples of how this works with real screens:
一个QVGA屏幕为320x240 LDPI。转换为MDPI(4/3比例因子)为我们提供了426dp点¯x320dp;这个最小尺寸相匹配上面的小屏幕桶。
A QVGA screen is 320x240 ldpi. Converting to mdpi (a 4/3 scaling factor) gives us 426dp x 320dp; this matches the minimum size above for the small screen bucket.
Xoom的是一个典型的10平板电脑与1280x800的屏幕MDPI。这会将其放入XLARGE屏幕桶。
The Xoom is a typical 10" tablet with a 1280x800 mdpi screen. This places it into the xlarge screen bucket.
本戴尔Streak是一种800X480的屏幕MDPI。这会将其放入大尺寸桶的底部。
The Dell Streak is a 800x480 mdpi screen. This places it into the bottom of the large size bucket.
一个典型的7平板电脑拥有1024x600的屏幕MDPI。这也算作一个大屏幕。
A typical 7" tablet has a 1024x600 mdpi screen. This also counts as a large screen.
这篇关于对于不同的屏幕分辨率设计UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!