在Eclipse Android中设置模拟器屏幕大小是本文要介绍的内容,主要是来了解并学习Eclipse Android中模拟器的设置,具体关于Eclipse Android内容的详解来看本文。
方法一、选择"AndroidSDKandAVDManager",选中相应的AVD,
点击右侧的"StartstheselectedAVD"按钮
如图,在"ScreenSize(in)"中填入你需要的屏幕尺寸,然后"Launch",OK(单击放大)
但是这种方法对我们点击“运行”后的模拟器没有影响。
方法二、同样选择"AndroidSDKandAVDManager",选中相应的AVD,
点击右侧“Edit”,在"Built-in:"右侧下拉菜单选择相应选项,该方法对我们运行android应用程序时启动的模拟器大小有效。
方法三、选择“运行配置”,选“Target”标签页,在“AdditionalEmulatorCommandLineOptions”里填入“-scale0.8”,后面的数字根据自己需要改变,个人感觉这里应该是对默认模拟器屏幕尺寸的缩放,如果填入"-scale1",则在运行时模拟器尺寸是默认大小。
命令行是:emulator-avdandroid2.2-scale0.8,要在DOS中进入到C:Androidandroid-sdk ools目录下运行。android2.2是你建立的AVD名称。(单击放大)
Android模拟器大小分类
1 320×480, portrait : emulator -skin HVGA-P (default) 2 320×240, landscape: emulator -skin QVGA-L 3 480×320, landscape: emulator -skin HVGA-L 4 240×320, portrait : emulator -skin QVGA-P 5 480*320,WQVGA432 6 800*480 WVGA800 7 800*540 WVGA854
模拟器分辨率收集
1 QVGA = 320 * 240; 2 WQVGA = 320 * 480; 3 WQVGA2 = 400 * 240; 4 WQVGA3 = 432 * 240; 5 HVGA = 480 * 320; 6 VGA = 640 * 480; 7 WVGA = 800 * 480; 8 WVGA2 = 768 * 480; 9 FWVGA = 854 * 480; 10 DVGA = 960 * 640; 11 PAL = 576 * 520; 12 NTSC = 486 * 440; 13 SVGA = 800 * 600; 14 WSVGA = 1024 * 576; 15 XGA = 1024 * 768; 16 XGAPLUS = 1152 * 864; 17 HD720 = 1280 * 720; 18 WXGA = 1280 * 768; 19 WXGA2 = 1280 * 800; 20 WXGA3 = 1280 * 854; 21 SXGA = 1280 * 1024; 22 WXGA4 = 1366 * 768; 23 SXGAMINUS = 1280 * 960; 24 SXGAPLUS = 1400 * 1050; 25 WXGAPLUS = 1440 * 900; 26 HD900 = 1600 * 900; 27 WSXGA = 1600 * 1024; 28 WSXGAPLUS = 1680 * 1050; 29 UXGA = 1600 * 1200; 30 HD1080 = 1920 * 1080; 31 QWXGA = 2048 * 1152; 32 WUXGA = 1920 * 1200; 33 TXGA = 1920 * 1400; 34 QXGA = 2048 * 1536; 35 WQHD = 2560 * 1440; 36 WQXGA = 2560 * 1600; 37 QSXGA = 2560 * 2048; 38 QSXGAPLUS = 2800 * 2100; 39 WQSXGA = 3200 * 2048; 40 QUXGA = 3200 * 2400; 41 QFHD = 3840 * 2160; 42 WQUXGA = 3840 * 2400; 43 HD4K = 4096 * 2304; 44 HXGA = 4096 * 3072; 45 WHXGA = 5120 * 3200; 46 HSXGA = 5120 * 4096; 47 WHSXGA = 6400 * 4096; 48 HUXGA = 6400 * 4800; 49 SHV = 7680 * 4320; 50 WHUXGA = 7680 * 4800;