Android background image size in pixel Android background image size in pixel android android

Android background image size in pixel


Try follow below android icon graphy size reference for various device screen resolutin.

                            ldpi     mdpi     hdpi     xhdpi    xxhdpi     xxxhdpiLauncher And Home           36*36    48*48   72*72    96*96    144*144    192*192Action Bar And Tab          24*24    32*32   48*48    64*64    96*96      128*128Notification                18*18    24*24   36*36    48*48    72*72      96*96Background                  320*426  320*470 480*640  720*1280 1080*1920  1440*2560


there is no full list of screen resolutions, there are no fixed values in pixels for ldpi, mdpi, hdpi,xhdpi and xxhdpi. Every android device may have different resolution. If you want to fill all resolutions you will have to create too many images. If you put them in your app, it will make the app size huge. Maybe a better approach is to use composite image for background.


According to android documentation

mdpi is baseLine size

enter image description here

we can use it to measure all other scales , that mean if mdpi (scale 1) equal 1 xhdpi (scale 2) should equal 2 , multiplay mdpi sizes in scale value

all sizes width x height in pixel

xxxhdpi: 1280x1920 px  // 4xxxhdpi : 960x1440 px   // 3xxhdpi  : 640x960 px    // 2xhdpi   : 480x800 px    // 1.5 x at least 480x720  mdpi   : 320x480 px    // baseline = 1xldpi   : 240x360 px    // .75 x

** notice I add xxhdpi with 3.0x scale to image*