我如何获得Android平板电脑模拟器是右侧朝上?模拟器、平板、如何获得、朝上

2023-09-12 09:58:46 作者:抑郁成疾

我刚刚下载了Android 3.0 SDK,并启动了一个模拟器它。我旋转模拟器肖像模式使用Ctrl-F12,然后打开,这是建立与2.2和整个模拟器的活动是倒挂(如模拟器是倒挂,住宅按钮在顶部和屏幕是上下颠倒) 。有没有办法将它旋转的其他方式还是我失去了一些东西完全? (我已经尝试做按Ctrl-F11或数字键盘,同样的结果)

I just downloaded the Android 3.0 SDK and booted up an emulator with it. I rotated the emulator to portrait mode with Ctrl-F12 and then opened and the activity that was build with 2.2 and the whole emulator is upside down ( as in the emulator is upside down, home buttons are on the top and screen is upside down) . Is there a way to rotate it the other way or am I missing something entirely? ( I have already tried doing Ctrl-F11 or the Num pad, same result)

推荐答案

打开androidmanifest文件。在应用程序选项卡中选择活动。然后向下滚动到屏幕方向,并在下拉菜单中选择sensorPortait。这只是从API级别9(2.3.1)及更高版本。

open your androidmanifest file. In the application tab select an activity. Then scroll down to screen orientation and select sensorPortait in the drop-down menu. It's only available from api-level 9 (2.3.1) and higher.

 
精彩推荐
图片推荐