2011-12-14 120 views
2

我是Andoid的新成員 我想爲Galaxy選項卡和其他佈局設計佈局。我設計了四個佈局 佈局 - 小,大,xlarge和正常佈局。但是當我試圖在Galaxy選項卡中檢查這個佈局時,這個佈局會拉長。 所以我如何開發在Galaxy選項卡中運行的佈局。Galaxy選項卡的佈局設計

回答

1
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