与sw600dp和sw720dp Android的布局 [英] Android layout with sw600dp and sw720dp
问题描述
我要支持 600dp
画面在我的Android应用程序。所以,我已经取得了使用该布局的布局sw600dp
。但我无法得到与应用程序的准确布局。
I want to support 600dp
screen in my android application. So i have made that layout using layout-sw600dp
. But i cannot get the exact layout with the application.
我 800×1280
屏幕尺寸布局sw720dp
,但布局是有点差与 720×1280
尺寸。
I got 800 X 1280
screen size with layout-sw720dp
but layout is little bit worse with 720 X 1280
size.
所以,我能做些什么来支持 720×1280
在布局sw720dp
和 600×1024
在布局sw600dp
?
So what can i do to support 720 X 1280
in layout-sw720dp
and 600 X 1024
in layout-sw600dp
?
推荐答案
有关你可以创建布局,并绘制有以下预选赛片
For tablets you can just create the layout and drawable with following qualifiers
布局sw600dp 绘制-sw600dp
layout-sw600dp drawable-sw600dp
这意味着平板电脑屏幕与最低600dp和较高的可使用此布局和绘制。
which means tablet screen with minimum of 600dp and higher can use this layout and drawable.
因此,对于标准配置预选赛屏幕大小,您可以创建以下配置:
So for standard configuration qualifiers for screen size you can create following configuration:
1)layout-sw480dp drawable-sw480dp
2)layout-sw600dp drawable-sw600dp
3)layout-sw720dp drawable-sw720dp
参考:这个 去以下 表2.新的配置预选赛屏幕大小(安卓3.2中引入)。
Ref: this go for following Table 2. New configuration qualifiers for screen size (introduced in Android 3.2).
这篇关于与sw600dp和sw720dp Android的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!