What resolution should my Android splash screens be? What resolution should my Android splash screens be? android android

What resolution should my Android splash screens be?


You don't need to worry about the absolute screen size or status bars or anything — that's why we have nine-patch images.

What I did was have an image that looked good for each resolution — essentially a logo on a transparent background, with some text at the bottom.

Then I chopped off quite a lot of space at the top and side edges, made a nine-patch border round the image, with a single pixel near the left, right and top edges. This allows the image to expand evenly at the sides and top to fill the screen.


Edit, in response to Dan's comment below:

Yes, there is a way to determine which graphics should be used for which explicit screen sizes, but it's deprecated.

Just as there are drawable-hdpi and -ldpi resource qualifiers, it's also possible to use drawable-HHHxWWW — the larger pixel dimension coming first.

e.g. drawable-800x480 and drawable-854x480


Okay, firstly: you can find the device model via android.os.Build and use that to determine which image to show.

Secondly, I personally wouldn't bother. Layouts should be done in dip since every android screen is 320x480 dip I believe, and android maintains aspect ratio among devices very well through this in my experience. A 480x800 splash set to fill parent has been pretty reliable on both N1 and the droid as far as I have encountered.


Another solution that I implemented is to put an ImageView that fills the screen (width and height both "MATCH_PARENT") with scale type "centerCrop". This way, the image is not stretched but cropped along the edges. Try not to put important content (logos and stuff like that) close to the edges. If it is a photograph, I hope that the edges are "expendable" and can be cropped out.