Skip to content

Instantly share code, notes, and snippets.

@richjava
Created December 16, 2014 04:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richjava/639cb19e3349e1540e6b to your computer and use it in GitHub Desktop.
Save richjava/639cb19e3349e1540e6b to your computer and use it in GitHub Desktop.
Android screen density pixel ratio
The ratio in pixels between screen densities is:
ldpi = 1:0.75
mdpi = 1:1
hdpi = 1:1.5
xhdpi = 1:2
xxhdpi = 1:3
xxxhdpi = 1:4
For an image of 100X100:
mdpi = 100X100
ldpi = 75X75
hdpi = 150X150
xhdpi = 200X200
xxhdpi = 300X300
xxxhdpi = 400X400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment