1
我正在开发Android Studio中的应用程序,但无法找到在模拟器中测试逆景的方法。 (我没有自己的Android设备,所以这不是一个选项。)有没有办法做到这一点或者模拟器没有这个功能?Android Studio模拟器逆向横向模式
编辑:我知道键盘命令的方向,但它只是切换标准布局。我想知道是否有方法在反向布局中设置模拟器。
我正在开发Android Studio中的应用程序,但无法找到在模拟器中测试逆景的方法。 (我没有自己的Android设备,所以这不是一个选项。)有没有办法做到这一点或者模拟器没有这个功能?Android Studio模拟器逆向横向模式
编辑:我知道键盘命令的方向,但它只是切换标准布局。我想知道是否有方法在反向布局中设置模拟器。
这帮助我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
[切换到横向模式在Android模拟器]的可能的复制(http://stackoverflow.com/questions/2618967/switching-to-landscape-模式在Android的模拟器) – nubteens
不完全,试图找到反向的键盘命令,ctr + f12/11只是在纵向和横向之间切换 – Tosh
另一个问题不是重复的,因为这个问题要求能够转向模拟器颠倒在不同的方向。 –