[英]Set portrait only orientation on devices with a screen size of less than 7 inches
I am creating an android application that I want to: 我正在创建一个我想要的Android应用程序:
How would I declare this without using androids deprecated (small, normal, large, xlarge) screen sizes? 在不使用不推荐使用(小,正常,大,xlarge)屏幕尺寸的android的情况下,我该如何声明呢?
Store some Boolean in values folders. 将一些布尔值存储在values文件夹中。 There can be multiple values folders like values-h720dp or values-w320dp. 可以有多个值文件夹,例如values-h720dp或values-w320dp。 Then read those data in oncreated method of activity and then set proper orientation. 然后以创建的活动方法读取这些数据,然后设置正确的方向。 To learn more read this 要了解更多信息,请阅读此
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.