具有多种布局的支持屏幕清单

问题描述 投票:0回答:1

我找到了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(布局,小,大,超大,小土地,小肖像)倍?

java android compatibility android-studio-3.0
1个回答
0
投票
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
© www.soinside.com 2019 - 2024. All rights reserved.