如何给布局文件夹名称,以支持Android的多屏幕尺寸 [英] How to give layouts folder name to support multiple screen size in android
问题描述
任何人可以告诉如何给布局文件夹名称,以支持多个屏幕尺寸的android
can anybody tell How to give layouts folder name to support multiple screen size in android
感谢
推荐答案
From the documentation:
配置预选赛,你可以用它来提供尺寸专用
资源小
,正常
,大
和 XLARGE
。例如,布局
一个超大的屏幕应该在布局XLARGE /
。
The configuration qualifiers you can use to provide size-specific resources are
small
,normal
,large
, andxlarge
. For example, layouts for an extra large screen should go inlayout-xlarge/
.
开始采用Android 3.2(API级别13),上述尺寸群体
德precated,你应该使用西南< N> DP
配置
预选赛定义所规定的最小可用宽度您
布局资源。例如,如果你的多面板的平板布局
至少需要600dp屏幕宽度,你应该把它放在
布局sw600dp /
。
Beginning with Android 3.2 (API level 13), the above size groups are
deprecated and you should instead use the sw<N>dp
configuration
qualifier to define the smallest available width required by your
layout resources. For example, if your multi-pane tablet layout
requires at least 600dp of screen width, you should place it in
layout-sw600dp/
.
这篇关于如何给布局文件夹名称,以支持Android的多屏幕尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!