Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个土地布局,如何让每个设备的布局不同,以便在 nexus 7 等上看起来更好。
查看上面发布的文档链接。基本上你是这样做的。
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(与设备无关的像素)的设备加载布局