马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
一、全局横竖屏设置,在module.json5下,对当前UIAbility设置orientation,如下:
- {
- "module": {
- "name": "entry",
- "type": "entry",
- ...
- "abilities": [
- {
- "name": "EntryAbility",
- ...
- "orientation": "auto_rotation",
- ...
- }
- ]
- }
- }
复制代码 orientation属性列表如下:
| orientation属性 | 形貌 | | 未指定方向,由体系自动判断体现方向 | | 横屏 | | 竖屏 | |
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!qidao123.com:ToB企服之家,中国第一个企服评测及软件市场,开放入驻,技术点评得现金 |