简体   繁体   English

如何创建屏幕较小的模拟器

[英]How to create emulators with small screen size

Hello i'm testing my application with different screen densities. 您好,我正在用不同的屏幕密度测试我的应用程序。 I have created 4 emulators with low medium high and extra high density and a normal screen size but the screens doesn't have the same size. 我创建了4个具有中低密度和超高密度以及正常屏幕尺寸的模拟器,但是屏幕的尺寸不一样。 I specified in the launch options Screen Size (in) = 3.7 and Monitor dpi = 113 i'm using a Mac Book Pro 1280 x 800 13". 我在启动选项中指定了“屏幕尺寸(英寸)= 3.7”和“显示器dpi = 113”,我使用的是Mac Book Pro 1280 x 800 13“。

Can that be done? 能做到吗?

Best Regards. 最好的祝福。

Follow the instructions here: http://developer.android.com/guide/developing/devices/managing-avds.html 请按照此处的说明进行操作: http : //developer.android.com/guide/developing/devices/managing-avds.html

  • In skin, check "Resolution" and add the resolution you want. 在皮肤上,检查“分辨率”并添加所需的分辨率。
  • In hardware, add the required dpi. 在硬件中,添加所需的dpi。

The screen size will be determined by these two factors as detailed here: http://en.wikipedia.org/wiki/Pixel_density#Calculation_of_monitor_PPI 屏幕尺寸将由这两个因素决定,详情如下: http : //en.wikipedia.org/wiki/Pixel_density#Calculation_of_monitor_PPI

Make sure you use the dpi values of the device you want to emulate, not the values from your monitor. 确保使用要模拟的设备的dpi值,而不是显示器的值。

For a list of screen sizes and resolutions, check http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density (it includes your monitor, although that information is irrelevant for the emulator) 有关屏幕尺寸和分辨率的列表,请访问http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density (它包括您的显示器,尽管该信息与模拟器无关)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM