How do I get the Android tablet emulator to be right-side up?

后端 未结 8 658
心在旅途
心在旅途 2021-01-03 19:01

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 bui

相关标签:
8条回答
  • 2021-01-03 19:25

    The easiest way to tackle that problem is to just flip the display of your host system. On the Mac you can do this in System Preferences > Display on Windows there is a keyboard shortcut: ctrl + alt + arrow key. (see here: https://superuser.com/questions/554589/how-can-i-horizontally-flip-invert-my-monitor-not-rotate and here: http://osxdaily.com/2010/12/28/rotate-mac-screen-orientation/)

    And if you have a standalone trackpad you can just turn it around physically to have your mouse pointer move naturally.

    0 讨论(0)
  • 2021-01-03 19:27

    I had the same problem, in my case when I rotated the emulator to portrait, the "desktop" would show correct. However the app would run upside down.

    (This worked for v4 Ice Cream) So, in portrait mode, in the bottom right corner of the emulator, select the settings and set "Auto-rotate screen" to OFF. Run the app now and it will show correct.

    0 讨论(0)
  • 2021-01-03 19:27

    Some of the emulator targets like 4.4 (API level 19) and 2.3 have a bug. Change your emulator to target version 4.2 or 4.3 and try to change the orientation or try to disable hardware keyboard.

    0 讨论(0)
  • 2021-01-03 19:28

    The same thing just happened to me with a KitKat emulator whenever I setup the AVD with a default orientation of Landscape. Switching the default to Portrait fixed the problem.

    0 讨论(0)
  • 2021-01-03 19:37

    Well , there can be one of the 2 cases ,

    1 - I misinterpreted your question , in which case i am extremely sorry

    2 - The problem has been solved in the latest download of the android 3.0 Sdk(i just downloaded 1 right now )

    Here , i am posting the screen shot of my AVD running 3.0 and a 2.2 Hello World Activity . enter image description here

    enter image description here

    ps - I had changed my laptop to portrait more for this particular screen shot

    0 讨论(0)
  • 2021-01-03 19:39

    I had this same issue when I was forcing portrait by setting screen orientation to "portrait" in the manifest file. When I made my app support rotation, and switched screen orientation back to "unspecified" the issue went away.

    If you don't want to support rotation, just change the manifest while you test, and before you open the app, rotate the emulator so it opens in portrait.

    0 讨论(0)
提交回复
热议问题