Android Emulator Screen Size not the same as device frame

拜拜、爱过 提交于 2019-12-07 04:23:04

问题


When I run the emulator the screen size is smaller than the device frame as in the image below. It only happens in a computer with a screen resolution of 3840 x 2160


回答1:


I have a Dell XPS 13 with a screen resolution of 3200 x 1800 and I had exactly the same problem.

After playing with the settings I found a (temporary) solution in Android Studio:

Navigate to Tools -> Android -> AVD Manager

  1. Click on "edit this AVD"(the one with the pencil drawing)
  2. In the "Emulated Performance" click the "Software.." option (Image below)

This way the rendering is made from software and not from the graphics card. It definitely effects the performance but maybe for a test it's ok.

Alternative suggestion: I tested the emulator from Genymotion and it works. It is free for personal users and maybe a good option if you want something faster.




回答2:


If the above Emulated performance is grayed out , which it was for me so the above answer did not help.

Not the most efficient way but you can change your screen resolution down to (1920x1080) and scale factor to 100% and it runs fine. You may have to restart your computer.




回答3:


I was able to fix this problem by on a Surface Pro by going to the display settings (right-click on desktop and select Display Settings) and changing the scale from 150% to 100%.

Scale setting:

This setting made all windows and text to small for me to see without a magnifying glass, so I changed it back to 150% and the problem did not reappear.



来源:https://stackoverflow.com/questions/44013216/android-emulator-screen-size-not-the-same-as-device-frame

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