Android Studio 模拟器反向横向

Android Studio emulator reverse landscape orientation

我正在 Android Studio 中开发应用程序,但找不到在模拟器中测试反向景观的方法。 (我没有 Android 设备,所以这不是一个选项。)有什么方法可以做到这一点,或者模拟器没有这个功能吗?

编辑:我知道用于方向的键盘命令,但它只能切换标准布局。我想知道是否有办法在反向布局中设置模拟器。

这对我有帮助Changing Android Device orientation with ADB

所以首先运行

adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0

比起:

肖像

adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0

REVERSE_LANDSCAPE

adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1

REVERSE_PORTRAIT

adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:2

风景

adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:3