Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Image resolution for mdpi, hdpi, xhdpi and xxhdpi

I have a background for my app in resolutions 720x1280 pixels, 1080x1920 pixels and 1440x2560 pixels.

In which folders (mdpi, hdpi, xhdpi and xxhdpi) should I put each background?

like image 761
user3051755 Avatar asked Feb 13 '15 19:02

user3051755


People also ask

What resolution is Mdpi?

48x48 (1.0x baseline) for medium-density (mdpi)

What is Xxhdpi resolution?

xxhdpi device of 1080 x 1920 pixels (Samsung S4, S5) will be of 360 X 640 dp.

What is Mdpi image?

mdpi is the reference density -- that is, 1 px on an mdpi display is equal to 1 dip.


1 Answers

Please read the Android Documentation regarding screen sizes.

From a base image size, there is a 3:4:6:8:12:16 scaling ratio in drawable size by DPI.

LDPI - 0.75x MDPI - Original size // means 1.0x here  HDPI - 1.5x XHDPI - 2.0x XXHDPI - 3x XXXHDPI - 4.0x 

For example, 100x100px image on a MDPI will be the same size of a 200x200px on a XHDPI screen.

like image 138
Manuel Ramírez Avatar answered Nov 08 '22 04:11

Manuel Ramírez