Wednesday, November 16, 2011

GalaxyTab, Motorola Xoom Screen Desity and Size

Galaxy Tab (7") is 170dpi, it is close to 160dpi, and should be mdpi . However, it is declared as "hdpi" and "large" by Samsung, because it's look better with a hdpi configuration. The new GalaxyTab 10.1 is the same size and resolution as Motorola Xoom, it should be mdpi and xlarge.(situee's blog)

-->
(situee's blog)

Density Screen Size Resolution
Samsung GalaxyTab 7 hdpi 7" large 1024 x 600
Motorola Xoom mdpi 10.1" xlarge 1280 x 800


So GalaxyTab uses "-large-hdpi"; XOOM uses "-xlarge-mdpi";

If you want to know the screen size and density of the new Galaxy Note check this post http://situee.blogspot.com/2013/01/galaxy-note-2-screen-specifications.html

You might also want to use resolution qualifier to differentiate the two.
go and check this post Resolution Qualifier of Layout Drawable for Android

If you want to know more about Android layout/drawable scaling,
go to this post Pre-scaling, Auto-Scaling and Screen Density


Background Knowledge


Starting with Android 1.6 (API Level 4), Android provides support for multiple screen sizes and densities. Android divide screens into two sets:
A set of four generalized sizes: small, normal, large, and xlarge
A set of four generalized densities: ldpi (low), mdpi (medium), hdpi (high), and xhdpi (extra high)
 



Table 3. Various screen configurations available from emulator skins in the Android SDK (indicated in bold) and other representative resolutions.

120, ldpi 160, mdpi 240, hdpi Extra high 320, xhdpi
Small screen QVGA (240x320)
480x640
Normal screen WQVGA400 (240x400)
WQVGA432 (240x432)
HVGA (320x480) WVGA800 (480x800)
WVGA854 (480x854)
600x1024
640x960
Large screen WVGA800** (480x800)
WVGA854** (480x854)
WVGA800* (480x800)
WVGA854* (480x854)
600x1024


Extra Large screen 1024x600 WXGA (1280x800)
1024x768
1280x768
1536x1152
1920x1152
1920x1200
2048x1536
2560x1536
2560x1600
* To emulate this configuration, specify a custom density of 160 when creating an AVD that uses a WVGA800 or WVGA854 skin.
** To emulate this configuration, specify a custom density of 120 when creating an AVD that uses a WVGA800 or WVGA854 skin.
† This skin is available with the Android 3.0 platform

2 comments:

  1. Hi, interesting post but how can you asure that Samsung GalaxyTab 7 is hdpi?

    ReplyDelete
    Replies
    1. Hi. It's from the official blog of android developers.
      http://android-developers.blogspot.com/2010/09/screen-geometry-fun.html

      "In this context, the Samsung has another little surprise: If you do the arithmetic, its screen has 170 DPI, which is far from the densest among Android devices. Still, it declares itself as “hdpi” (and as having a “large” screen size). The reason is simple: It looks better that way."

      "...the Galaxy Tab’s screen is at the large end of “large”, so declaring it as high-density applies a useful compensation."

      Delete