gpt4 book ai didi

android - Galaxy 选项卡的布局设计

转载 作者:行者123 更新时间:2023-11-29 02:09:04 28 4
gpt4 key购买 nike

我是Andoid新手我想为 Galaxy 选项卡设计布局以及其他布局。我设计了四种布局Layout-small、large、xlarge 和 normal 布局。但是当我试图在 Galaxy 选项卡中检查时,布局被拉伸(stretch)了。那么我如何开发在 Galaxy 选项卡中运行的布局。

最佳答案

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

关于android - Galaxy 选项卡的布局设计,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8499858/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com