Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio API Level 28: Rotating emulator does not rotate the app contents or device UI

Foreword. I know this question has been asked several times in the past, but none of the solutions have actually worked for me. It's also been several years since a similar question has been asked (according to a time-filtered Google search), so most of the older answers are outdated. If there's any way I can edit the question to be clearer, please let me know.

Problem. When I click either of the rotation buttons, the emulator itself rotates, but the user interface and app contents do not get redrawn accordingly, such that I have to tilt my head (defeating the purpose of rotating the device).

Specifications

  • Android Studio 3.2
  • Android SDK 9.0 (Pie)
  • Nexus 5X API 28 (I've tried other devices, but the issue persists)
  • I do not have any Android Manifest orientation attributes set

Screenshots

enter image description here

enter image description here

enter image description here

like image 994
AlexH Avatar asked Nov 12 '18 21:11

AlexH


People also ask

How do you rotate the screen on an emulator?

Use Ctrl + F11 . This will rotate your emulator.

Why is my emulator not working Android Studio?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.


1 Answers

Make sure auto-rotate is enabled on the virtual device. Pull down the notification bar and look for the Auto-rotate toggle and turn it on. Or, go into Settings->Display->Advanced and make sure Auto-rotate screen is turned on.

like image 129
Greg Moens Avatar answered Sep 22 '22 23:09

Greg Moens