我有一个小的例子来测试我的Android环境下,当我发动对AVD的执行,看起来太大了(好像它是一个平板电脑屏幕)。如何解决大小,使它看起来像一个移动的屏幕?
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?
要设置的尺寸模拟器,你可以做到这一点,
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
您也应该给予密度在
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