gpt4 book ai didi

android - 如何给布局文件夹名称以支持android中的多种屏幕尺寸

转载 作者:太空宇宙 更新时间:2023-11-03 12:23:10 24 4
gpt4 key购买 nike

谁能告诉我如何给布局文件夹名称以在 android 中支持多种屏幕尺寸

谢谢

最佳答案

来自 the documentation :

The configuration qualifiers you can use to provide size-specific resources are small, normal, large, and xlarge. For example, layouts for an extra large screen should go in layout-xlarge/.

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 - 如何给布局文件夹名称以支持android中的多种屏幕尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9513910/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com