Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The window of the Emulator is too big than a mobile screen

i have make a small example to test my Android environment, when i launch the execution on the AVD, it looks too big(as if it is a tablet screen). How can i fix the size so that it look like a mobile screen?

enter image description here

like image 883
Malloc Avatar asked Oct 15 '11 11:10

Malloc


2 Answers

To Set the Size of the Emulator You can do this,

    Window -> Android SDK and AVD Manager 
    -> Select the virtual device you are using 
    -> Click on Edit -> Skin

    SELECT : Resolution and give the Height and Width say 320 X 480

You Should also give Density in

        Window -> Android SDK and AVD Manager 
        -> Select the virtual device you are using 
        -> Click on Edit -> Hardware 

        SELECT : Abstracted LCD Density and Give Values
        i.e. 240X320 = 120, 320X480 = 160 and 480X800 = 240
like image 71
MKJParekh Avatar answered Sep 21 '22 13:09

MKJParekh


  1. In Android Studio: click "Run" -> "Edit Configurations.."
  2. On the left side select your current app (its probably selected already)
  3. click on the "Emulator" tab
  4. check "Additional command line options:" and write "-scale 0.75" (for 75% percent of the original size, use 0.5 for 50%, etc.)
  5. Apply your changes, click "ok" and run your emulator
like image 27
Christian Strang Avatar answered Sep 22 '22 13:09

Christian Strang