【发布时间】:2021-08-02 16:14:40
【问题描述】:
如何为每个屏幕添加动态方向? 我需要我的一些屏幕必须是纵向的,其中一些是横向的...... 我用过
SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft,DeviceOrientation.landscapeRight])
和
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitDown,DeviceOrientation.portraitUp])
对于不同的屏幕..但这并不能解决我的问题...第一个定位被添加到所有屏幕...
【问题讨论】: