0

Let's imagine I want a picture of my dog as a background picture of a layout, and I want my application to be running on every smartphones.

I've read a lot of articles about this, and I just want to be certain that my dog will still look like a normal dog even if I use a tablet, a Nexus 5, or a moto G.

This subject is really similar to my problem: Android: Background Image Size (in Pixel) which Support All Devices

According to the comments, it's not possible to have one image per resolution, because we have too many resolutions for android.

I just want an image of my dog as a portrait background.

Is it possible to do it? What is the easiest way to do it? What if my layout height is not exactly equal to the device screen height, but the device height minus another layout (fixed size) ?

Community
  • 1
  • 1
Vico
  • 1,696
  • 1
  • 24
  • 57
  • Use 9 Pach Image, hope it will solves your problem. Here is the link for it http://developer.android.com/tools/help/draw9patch.html or http://developer.android.com/reference/android/graphics/NinePatch.html – King of Masses May 05 '15 at 05:06
  • Thank you for your answer @Gangulian, but if I'm right 9patch is for really easy images, such as a button. I think my dog is too complex to be set as a 9patch image. Am I right? – Vico May 05 '15 at 05:18

0 Answers0