如何为每个设备制作不同的布局?

问题描述:

我有一个土地布局我怎么得到布局的不同,每个设备,所以东西看起来更好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

查阅上面张贴的文档链接。基本上你是这样做的。

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(设备无关的像素)具有最小宽度尺寸的设备