Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android 9-Patch Background Image Initial PNG Size?

I'm looking at making a 9-Patch background image for my application and I'm wondering what size should I make the initial PNG in Photoshop before I convert it to a 9-Patch Image?

Thanks Aaron

like image 361
MonkeyBlue Avatar asked May 03 '11 18:05

MonkeyBlue


2 Answers

Your image can be as small as 5 by 5 to as large as 1280x800...

It really depends what you want to show on that background image. small files are certainly not as exciting as nice fullscreen splash screens designed by a professional :)

If you want your splash screen to fill the screen, you can design your splash screen so it fits the biggest screen out there and put it inside an imageview letting android crop it for smaller screen.

You can also scale the image to fit all resolutions, but this is not as sharp looking.

like image 152
Richard Lalancette Avatar answered Sep 29 '22 13:09

Richard Lalancette


Take a look at http://developer.android.com/guide/practices/screens_support.html

Note the combination of screen sizes and densities to consider.

For now, you'll probably want to cover at least three image sizes: 320x480, 480x800, and something for small/LDPI devices. In the not-too-distant future, you might also want to include an image for XHDPI devices.

The images should be these sizes, before adding the 9-patch info. The 9-patch info will make the actual image sizes larger by 2 pixels in width and height, and that's how it's supposed to work. So, the 320x480 image will become 322x482.

like image 44
Thane Anthem Avatar answered Sep 29 '22 12:09

Thane Anthem