如何让平板电脑这两个横向/纵向只 [英] How to allow both landscape/portrait for tablets only

查看:101
本文介绍了如何让平板电脑这两个横向/纵向只的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现我只在平板电脑应用程序屏幕方向变化,而只在手机限制布局画像。你怎么做到这一点?

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?

推荐答案

在任何情况下,请阅读的这个。它应该给你一个想法,如何去做。在<支持屏> 标签允许你声明你希望你的应用程序支持什么样的屏幕。但是,如果你看过,它会给你一个想法有关屏幕方向。

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.

希望这有助于。

这篇关于如何让平板电脑这两个横向/纵向只的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆