如何修改桌面的代码固定桌面方向

最近驱动适配出现了一个问题,通过设置display_manager_config.xml的值后,锁屏和应用界面是旋转的,但桌面却没有,猜测是launcher在获得屏幕参数时出现了问题,想请教各位大佬如何通过修改桌面代码来指定桌面的方向呢
您需要先 登录 才能评论/回答

全部评论(6)
应用module.json5中
"abilities": [{
"name": "EntryAbility",
"orientation": "landscape" //设置为固定横屏
"orientation": "portrait" //设置为固定竖屏
"orientation": "auto_rotation" //屏幕自动旋转
}]

2025-02-18 15:13:28