openharmony jsFA 如何横屏显示?

是不是目前还不支持啊

鸿蒙
HarmonyOS
2021-12-15 09:57:34
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
韩童

在config.json的配置文件下修改orientation的值为landscape:

    "abilities": [

      {

        "skills": [

          {

            "entities": [

              "entity.system.home"

            ],

            "actions": [

              "action.system.home"

            ]

          }

        ],

        "orientation": "landscape",

        "visible": true,

        "srcPath": "MainAbility",

        "name": ".MainAbility",

        "srcLanguage": "js",

        "icon": "$media:icon",

        "description": "$string:description_mainability",

        "formsEnabled": false,

        "label": "$string:entry_MainAbility",

        "type": "page",

        "launchType": "standard"

      }

    ],

分享
微博
QQ
微信
回复
2021-12-15 13:39:02
提问
该提问已有0人参与 ,帮助了0人