Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing Android Emulator Size to fit on my Screen

this may be a stupid question, but I've been doing Android Development for quite some time but just installed the new version of the SDK and ADT Eclipse plugin.

I've noticed that when I create a new AVD I can choose a specific device, I.e. Nexus 7 or Nexus Phone. I've selected the Galaxy Nexus but the emulator doesn't fit on the screen so I can't see the bottom of the device. At the moment I'm working on my Desktop which has a 21 inch monitor (1600 x 900) not the most highest spec in the world but I want to be able to fit the device on the screen. I also have a secondary screen which I usually keep the emulator on so I can see the code and the emulator, handy for debugging purposes, but this screen is much smaller and only has a resolution of 1280 x 800. At the moment, it would be impossible to press on the back and home buttons, and if I do development on my laptop, which is obviously a much smaller screen, probably wouldn't be able to see most of the device, as the AVD doesn't seem to scale to fit the screen.

Is there a way that this can be done. Below is a screen shot of how the device looks on my screen.

enter image description here

like image 999
Boardy Avatar asked Dec 01 '12 15:12

Boardy


People also ask

How do I make Android emulator full screen?

Alt+Enter is the keyboard shortcut to toggle full screen mode in the emulator, just do it again to exit full screen.

How do I zoom out on my emulator?

Pressing and holding the Cmd (Ctrl) key, and then zooming in/out using the mouse works. Yes, Holding Ctrl key while left click your mouse. For example, it works well while using google map. Also, you can double left or right click to zoom in and double left or right click + Ctrl to zoom out.

How do I pinch zoom on Android emulator?

The pinch key on the emulator is the Alt key. Hold down Alt and click and drag your mouse button.


2 Answers

Right click your project -> Run Configuration -> select target -> in additional emulator command line option text box, type '-scale 0.75' and run your app

like image 193
kumar_android Avatar answered Oct 16 '22 13:10

kumar_android


For those using Ionic CLI or other solutions, the following worked for me:

ionic run android -scale=0.75
like image 2
isherwood Avatar answered Oct 16 '22 13:10

isherwood