Optimized size and dpi for Android app images

My application has a background image, and I would like to create different files for it in order to support multiple screens.

I posted this link ( http://developer.android.com/guide/practices/screens_support.html ) for the graphic designer, but he asked me about the pixel sizes that I want the images to be created using.

Given that I have a graphic designer on my team and I don’t want to use the code to optimize images loaded into memory (I only want to place the images in the right folders for small, regular, large and xlarge screens), what are the most optimized size and dpi options to create it?

We work with PNG files.

For dpi, we follow this:

  • ldpi Resources for low-density screens (ldpi) (~ 120 dpi).
  • mdpi Resources for medium-density screens (mdpi) (~ 160 dpi). (This is the base density.)
  • hdpi Resources for high-density screens (hdpi) (~ 240 dpi).
  • xhdpi Resources for high density screens (xhdpi) (~ 320 dpi).

But for measurements, I could only find this, which is in dp and not in px:

  • xlarge screens at least 960dp x 720dp
  • large screens of at least 640dp x 480dp
  • regular screens at least 470dp x 320dp
  • small screens at least 426dp x 320dp
+6
source share
1 answer

1 dp = 1 px on the screen 160 dpi. But the best choice for the screen is to look here http://developer.android.com/guide/practices/screens_support.html#testing and scroll down to the place where the screen shows the dimensions in pixels (for example: 1920x1080) (table 3) Then check which ones you need most by looking at the http://developer.android.com/about/dashboards/index.html#Screens graph

but the first link will give you the most used screen sizes used by Android devices.

+5
source

All Articles