Android AVD 的最佳屏幕分辨率是多少?
这似乎是一个愚蠢的问题,但我想知道在测试我们的应用程序时使用的最佳分辨率是什么(HVGA/WVGA/QVGA?等)?
我问这个问题是因为我希望设备的布局和性能在大多数屏幕尺寸上保持一致。
This is might seem to be a sort of silly question to ask but I would like to know while testing our apps what is the best resolution to be used (HVGA/WVGA/QVGA?etc)?
I ask this because I want the layout and the performance of the device to be consistent across most screen sizes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Android 开发者网站上有一个定期更新的图表,其中包含屏幕尺寸和密度:
来源
这并没有告诉您确切的分辨率,而是将所有手机分为 4 种尺寸(小, 正常, 大, xlarge)和密度。这至少应该给你一个提示。
最大的部分显然是 Normal/hdpi,我想这应该是很多 3.7" HDPI 显示器,分辨率为 480x800(或至少接近这个分辨率)。像 Nexus One 或 HTC Desire(肯定有一些更新的,但我只在寻找要购买的手机时才会关注市场)。
There is a regularly updated diagram with the screen sizes and densitys available at the android developers site:
Source
This doesn't tell you an exact resolution, but seperates all phones into 4 sizes (small, normal, large, xlarge) and densities. This should give you a hint at least.
The biggest chunk is obviously Normal/hdpi, I guess that should be a lot of 3.7" HDPI displays with a 480x800 resolution (or at least close to this res). Like the Nexus One or HTC Desire (there are sure some newer ones, but I only keep an eye on the market when I'm searching for a phone to buy).
您可以使用所有分辨率来测试您的应用程序,因为有些手机具有 QVGA 分辨率,有些手机具有 HVGA 或 WVGA 分辨率。平板电脑有其他分辨率。
更多信息:http://developer.android.com/guide/practices/screens_support.html< /a>
You can use all resolution to test your application, because some phones have QVGA resolution, some HVGA or WVGA resolution. Tablets have others resolutions.
More informations : http://developer.android.com/guide/practices/screens_support.html
如果您使用
dp
单位来表示屏幕元素的尺寸,那么您不必担心(太多),因为这是基于屏幕像素密度的相对尺寸。If you use the
dp
unit for the sizes of your screen elements, then you shouldn't need to worry (as much) as this is a relative size, based on the pixel density of the screen.