Search code examples
androidimagebackgroundpixelimage-size

Creating Android background, how many pixels?


I want to create backgrounds for my Android game. And while reading here I get how it works, what I don't get is how to set the correct size in Photoshop for the different folders.

Here is the list from Android Developers:

xlarge screens are at least 960dp x 720dp
large screens are at least 640dp x 480dp
normal screens are at least 470dp x 320dp
small screens are at least 426dp x 320dp

But what would this be in pixels? Since Photoshop doesn't have dp. How can I make a list like the following?

  • Small screens are at least <Insert pixel size here>
  • Normal screens are at least <Insert pixel size here> (...)

I don't want my background to stretch and shrink to much, so I would like at least four different sizes.


Solution

  • I am not sure what you are looking for exactly, but here are some sizes in pixels:

        320dp: a typical phone screen (240x320 ldpi, 320x480 mdpi, 480x800 hdpi, etc).  
        480dp: a tweener tablet like the Streak (480x800 mdpi).  
        600dp: a 7” tablet (600x1024 mdpi).  
        720dp: a 10” tablet (720x1280 mdpi, 800x1280 mdpi, etc.).
    

    It is taken straight from Stack Overflow question Android screen size HDPI, LDPI, MDPI.