Android Emulator UI breaks on orientation changed

為{幸葍}努か 提交于 2020-12-25 09:37:41

问题


Currently I have a strange issue on Android Studio 4.1 with my emulators. When I'm trying to change the orientation to landscape the ui of the emulator is completely breaking... This is how it looks like:

Has anyone an idea why this is happening? I changed the emulator performance in the AVD settings to "Software" after that it does not happen but it is very slow.


回答1:


As already pointed out, setting emulator graphics options to "Software" helps as a temporary fix.

I would like to add that if you can't change the settings in the AVD Configuration (in my case graphics were automatic, the field was readonly), you can do that manually:

  1. on AVD Manager, right-click on the desired device, then "Show on Disk"
  2. look for the config.ini of the device and open it
  3. change "hw.gpu.mode = auto" to "hw.gpu.mode = software"

This worked for me. Hope it helps someone else to avoid headaches.



来源:https://stackoverflow.com/questions/64857741/android-emulator-ui-breaks-on-orientation-changed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!