Android: how to create a screen saver image?

Hi, I would like to show a splash screen image; I read http://developer.android.com/guide/practices/screens_support.html about different directories (ldpi, mdpi, ...) for creating under res /, but I did not understand if, besides creating the same image, 240x320 , 320x480 and 480x800 I need to do other things to achieve a good result. Can someone suggest me what is best to do?

Thanks in advance with.

+7
source share
2 answers

What you are describing is what you need to do. You need an image for each group of screen pixel densities (ldpi, mdpi, hpdi and poss xhdpi)

Other things you can do?

  • Use a background around the image to make the image look stretched (for example, if the image is white near the edges, use a white background). It will look better if there is no obvious border around the image and it disappears in the background.
  • Background / borders can be 9-patch , stretchable image
  • In theory, you could provide a lot more images and select them at runtime based on the actual screen size, but this is a very bad idea (you never know what new sizes are coming)
  • Remember to include portrait and landscape versions - it is never recommended to take one orientation if you can avoid it.

Think of an Android screen, such as a resizable web page, they come in different sizes and shapes, and your layout should stretch and adapt for everyone.

+8
source

Like Ollie C, I also create a 9 patch that I installed in the background, the only problem with this metos is that your Splashscreen should have uniform stretchable areas.

0
source

All Articles