对于Galaxy Tab的布局设计 [英] Layout Design for Galaxy tab

查看:143
本文介绍了对于Galaxy Tab的布局设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Andoid是新
我想与其他布局设计以及对Galaxy Tab的布局。我大概设计四个布局
布局小,大,对于正常XLARGE和布局。但是,当我试图在银河标签来检查这个布局是捉襟见肘。
所以,我如何发展,在银河标签也跑的布局。


解决方案

  RES /布局/ my_layout.xml //适用于布局进行正常的屏幕尺寸(默认)
RES /布局小/ my_layout.xml //适用于布局屏幕尺寸小
RES /布局大/ my_layout.xml //适用于布局大尺寸屏幕
RES /布局XLARGE / my_layout.xml //适用于布局超大屏幕尺寸
RES /布局XLARGE土地/ my_layout.xml //适用于布局横向特大型低密度小屏幕QVGA 240×320RES /布局小LDPI
RES /布局小土地LDPI低密度标准屏幕240X400 WVGA400(X432)RES /布局LDPI
RES /布局土地LDPI中密度标准屏幕分辨率320x480 HVGARES /布局于mdpi
RES /布局土地MDPI中密度大的屏幕分辨率320x480 HVGARES /布局大MDPI
RES /布局大土地MDPI高密度标准屏幕WVGA800 480×800(x854)RES /布局华电国际
RES /布局土地华电国际Xoom的(中密度大,但1280×800分辨率)RES /布局XLARGE
RES /布局XLARGE土地

I am new in Andoid I want to design layout for Galaxy tab along with other layout. I design four layout Layout-small,large,xlarge and layout for normal. But When I am trying to check this in Galaxy tab the layout is stretched. So how i develop the layout that run in Galaxy tab also.

解决方案

res/layout/my_layout.xml             // layout for normal screen size ("default")
res/layout-small/my_layout.xml       // layout for small screen size
res/layout-large/my_layout.xml       // layout for large screen size
res/layout-xlarge/my_layout.xml      // layout for extra large screen size
res/layout-xlarge-land/my_layout.xml // layout for extra large in landscape orientation



Low density Small screens QVGA 240x320 

res/layout-small-ldpi
res/layout-small-land-ldpi

Low density Normal screens WVGA400 240x400 (x432)

res/layout-ldpi
res/layout-land-ldpi

Medium density Normal screens HVGA 320x480

res/layout-mdpi
res/layout-land-mdpi

Medium density Large screens HVGA 320x480

res/layout-large-mdpi
res/layout-large-land-mdpi

High density Normal screens WVGA800 480x800 (x854)

res/layout-hdpi
res/layout-land-hdpi

Xoom (medium density large but 1280x800 res)

res/layout-xlarge
res/layout-xlarge-land

这篇关于对于Galaxy Tab的布局设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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