我找到了this,但我不清楚;当还有很多带有片段的布局时,如何添加
/res/layout/layout.xml // Default layout
/res/layout-small/layout.xml // Small screens
/res/layout-large/layout.xml // Large screens
/res/layout-xlarge/layout.xml // Ex
/res/layout-small-land/layout.xml // Small screens, landscape view
/res/layout-small-portrait/layout.xml // Small screens, portrait view
要使该应用程序与任何屏幕尺寸兼容?同样对于一个UI,是否需要设计屏幕尺寸所需的视图x6(布局,小,大,超大,小土地,小肖像)倍?
You can check this :
res/layout/main_activity.xml # For handsets
res/layout-land/main_activity.xml # For handsets in landscape
res/layout-sw600dp/main_activity.xml # For 7” tablets
res/layout-sw600dp-land/main_activity.xml # For 7” tablets in landscape