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
source share