4

I tried to use Android Studio emulator on my Dell XPS 15 with 4K display (set to 200% scaling). There is a problem, however. The size of the emulator screen is fine, but the frame around it is enormous. Here is how it looks like:

enter image description here

I used Android Studio and it's emulators on this machine before, but it was more then a month ago and since then I reinstalled Windows once.

I tried to change emulated graphics setting like first answer in this question suggests: Android Emulator Screen Size not the same as device frame

But no luck, that dropdown is just grayed out for me, I can't do anything with it. Also, if I disable the frame in emulator settings, window for it is still very large compared to the "screen". What can I do?

IntegerOverlord
  • 1,477
  • 1
  • 14
  • 33

2 Answers2

3

I've found a solution to this problem. You should go to where your 'emulator.exe' is located (for me it's C:\Users***\AppData\Local\Android\Sdk\emulator) right-click 'emulator.exe', go to properties, and do the following:

  1. Go to the 'Compatability' tab
  2. Click on "Change high DPI settings"
  3. Check 'Override high DPI scaling behavior" and chose 'System (Enhanced)' from the list. Properties of 'emulator.exe' example

Click Apply and then OK. Restart IDE and all should work well! :)

Aviad
  • 51
  • 5
0

I experienced the same problem with my Windows 10 computer. Here is a solution that works for me:

  1. Start Android Studio
  2. Switch your screen resolution to 1920 x 1080 at 100% scale by going to windows display settings enter image description here
  3. Once your screen resolution is at 1920 x 1080, start the android emulator
  4. While the emulator is running, switch your resolution back to 3840 x 2160 at 200% scale and the emulator should look right

You will have to do this every time you start the emulator. Once you have it running properly in 4k DO NOT close the emulator because you will have to repeat the above steps.