支持哪些 Android 应用分辨率?

发布于 2024-08-26 13:59:26 字数 440 浏览 4 评论 0原文

我在 Android SDK 页面上看到,它提到了 Android 平台上期望的一些屏幕分辨率:

小屏幕
QVGA (240x320),2.6"-3.0" 对角线

普通屏幕
WQVGA (240x400),3.2"-3.5" 对角线 FWQVGA (240x432),3.5"-3.8" 对角线 HVGA (320x480),3.0"-3.5" 对角线 WVGA (480x800),3.3"-4.0" 对角线 FWVGA (480x854),3.5"-4.0" 对角线

大屏幕
WVGA (480x800),4.8"-5.5" 对角线 FWVGA (480x854),5.0"-5.8" 对角线

显然,在所有这些分辨率上测试您想要销售的应用程序将是一件痛苦的事情。有没有关于使用上述分辨率的 Android 手机百分比的数据?我希望只有 3 个左右受欢迎的解决方案......

I see on the Android SDK pages, it mentions some screen resolutions to expect on Android platforms:

Small screen
QVGA (240x320), 2.6"-3.0" diagonal

Normal screen
WQVGA (240x400), 3.2"-3.5" diagonal
FWQVGA (240x432), 3.5"-3.8" diagonal
HVGA (320x480), 3.0"-3.5" diagonal
WVGA (480x800), 3.3"-4.0" diagonal
FWVGA (480x854), 3.5"-4.0" diagonal

Large screen
WVGA (480x800), 4.8"-5.5" diagonal
FWVGA (480x854), 5.0"-5.8" diagonal

Obviously, testing an app you want to sell on all these resolutions is going to be a pain. Is there any data on what percent of android phones being used use the above resolutions? My hope is that there's only really 3 or so popular resolutions...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北陌 2024-09-02 13:59:26

最常见的屏幕尺寸是 320x480(G1、Hero)、480x800(Nexus One 和 Desire)和 480x854(Droid),几乎相同。如果您要使用第四个分辨率,则对于纹身之类的内容必须是 240x320。

也就是说,对于许多应用程序来说,不同的屏幕分辨率根本不重要。只要您使用与密度无关的像素、布局权重等进行编码,通常所有内容都会自动调整大小。如果您正在使用图形做某事,是的,这会更痛苦,因为您可能需要不同大小的图像文件。也就是说,Android 仍然会自动缩放许多东西。您读过支持多个屏幕吗?这是 Android 开发者网站上的一个有用链接,提供了一些有关如何处理这一切的最佳实践。

The most common screen sizes are 320x480 (G1, Hero), 480x800 (Nexus One and Desire) and 480x854 (Droid) which is nearly the same. If you're going with a 4th resolution, it'd have to be the 240x320 for things like the Tattoo.

That said, for many applications, different screen resolutions simply don't matter. As long as you code using density independent pixels, layout-weights and the like, normally everything will just resize itself automatically. If you're doing something with graphics, yes, it's more of a pain since you might need to have different size image files. That said, Android will still automatically auto-scale many things. Have you read Supporting Multiple Screens? It's a useful link from the Android Developers' site giving some best practices on how to handle it all.

待"谢繁草 2024-09-02 13:59:26

以下是屏幕尺寸和密度的最新百分比细分 http://developer .android.com/resources/dashboard/screens.html。它可能对你有用。

|        | ldpi | mdpi | tvdpi | hdpi  | xhdpi | xxhdpi | Total |
| ------ | ---- | ---- | ----- | ----- | ----- | ------ | ----- |
| Small  | 0.4% |      |       |       | 0.1%  | 0.1%   | 0.6%  |
| Normal |      | 0.9% | 0.3%  | 24.0% | 37.7% | 23.6%  | 86.5% |
| Large  |      | 2.4% | 1.9%  | 0.6%  | 1.6%  | 1.7%   | 8.2%  |
| Xlarge |      | 3.1% |       | 1.3%  | 0.6%  |        | 5.0%  |
| Total  | 0.4% | 6.4% | 2.2%  | 25.9% | 40.0% | 25.4%  |       |

Here is an up-to-date percentage breakdown of screen sizes and densities http://developer.android.com/resources/dashboard/screens.html. It might be useful for you.

|        | ldpi | mdpi | tvdpi | hdpi  | xhdpi | xxhdpi | Total |
| ------ | ---- | ---- | ----- | ----- | ----- | ------ | ----- |
| Small  | 0.4% |      |       |       | 0.1%  | 0.1%   | 0.6%  |
| Normal |      | 0.9% | 0.3%  | 24.0% | 37.7% | 23.6%  | 86.5% |
| Large  |      | 2.4% | 1.9%  | 0.6%  | 1.6%  | 1.7%   | 8.2%  |
| Xlarge |      | 3.1% |       | 1.3%  | 0.6%  |        | 5.0%  |
| Total  | 0.4% | 6.4% | 2.2%  | 25.9% | 40.0% | 25.4%  |       |
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文