Monday, July 25, 2011

Android device sizes and resolutions

I use the following 4 sizes:


  1. drawable-small: ignored, hardly anyone uses phones like that
  2. drawable-normal-mdpi: older phones with about 3 inch screens, 480x320px resolution, e.g. MyTouch
  3. drawable-normal-hdpi: most phones with 3 to 4.3 inch phones with 480 wide screens: Droids, Nexus, etc.
  4. drawable-large: 5 and 7 inch tablets: Samsung Galaxy Tab 7
  5. drawable-xlarge: 8 to 10 inch tablets, eg. Motorola Xoom, Samsung Galaxy 8.9 and 10.1



Corresponding folders are created for layout, e.g. layout-mormal-mdpi and so on.

The distinction between normal-mdpi and normal-hdpi is very important as these phones have totally different sizes.

In the picture below you can see these sizes being tested with the same content.