如何在android中提供布局文件夹名称以支持多个屏幕大小

如何在android中提供布局文件夹名称以支持多个屏幕大小,第1张

概述任何人都可以告诉如何给出布局文件夹名称以支持android中的多个屏幕大小谢谢解决方法:从thedocumentation开始:Theconfigurationqualifiersyoucanusetoprovidesize-specificresourcesaresmall,normal,large,andxlarge.Forexample,layoutsforanextra

任何人都可以告诉如何给出布局文件夹名称以支持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中提供布局文件夹名称以支持多个屏幕大小所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1112862.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存