开发者

Which Android app resolutions to support?

开发者 https://www.devze.com 2022-12-25 03:41 出处:网络
I see on the Android SDK pages, it mentions some screen resolutions to expect on Android platforms: Small screen

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...


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.


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%  |       |
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号