2013-05-08 69 views
0

我有一個土地佈局我怎麼得到佈局的不同,每個設備,所以東西看起來更好nexus 7等如何爲每個設備製作不同的佈局?

+0

http://developer.android.com/training/multiscreen /screensizes.html – 2013-05-08 21:30:08

+0

http://developer.android.com/guide/practices/screens_support.html – 2013-05-08 21:30:26

回答

2

查閱上面張貼的文檔鏈接。基本上你是這樣做的。

res/layout-land/main_activity.xml   # For phones 
res/layout-sw600dp-land/main_activity.xml # For 7」 tablets 
res/layout-sw720dp-land/main_activity.xml # For 10」 tablets 

SW-爲600dp告訴系統從該文件夾加載佈局具有的爲600dp(設備無關的像素)具有最小寬度尺寸的設備

相關問題