如何仅允许平板电脑使用横向/纵向
我想仅在平板电脑中为我的应用程序启用屏幕方向更改,同时将手机中的布局限制为仅纵向。你如何做到这一点?
I would like to enable screen orientation changes for my application in tablets only, while restricting the layout in phones to portrait only. How do you do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
无论如何,请阅读此内容。它应该让您知道如何去做。
标签允许您声明您希望应用程序支持哪种类型的屏幕。但是,如果您阅读此,它会给出您对屏幕方向有一个想法。希望这有帮助。
In any case, please read this. It should give you an idea as to how to go about it. The
<supports-screens>
tag allows you to declare what sort of screens you want your app to support. However, if you read this, it'll give you an idea about screen orientation.Hope this helps.