仿真器的窗口比手机屏幕太大仿真器、太大、手机屏幕、窗口

2023-09-05 11:12:42 作者:天亮说晚安

我有一个小的例子来测试我的Andr​​oid环境下,当我发动对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