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

后端 未结 8 657
心在旅途
心在旅途 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条回答
  •  -上瘾入骨i
    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.

提交回复
热议问题