layout-large-land-hdpi错误

时间:2011-12-13 14:20:10

标签: android android-layout

我正在尝试使用res res文件夹

布局大陆HDPI

但是sdk给了我一个错误并且没有编译。

layout-large-hdpi有效!

正如here所说,它应该有效!

1 个答案:

答案 0 :(得分:13)

//是的,我们可以使用layou-large和layout-large-mdi等等。

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