Search code examples
androidbackground-imagenine-patch

Android Background - Stretch - 9Patch Issue


I built an image, did what is necessary using 9Patch, and applied it as a background image for a ScollView.

The image displayed as stretched, well thats what I want. But it didn't stretch in the way 9-Patch showed. It streatches the image kind of disregarding the information I have fed through 9-Patch. Any way I can correct this?

android:background="@drawable/phonebg"   

Well, what I am trying to achieve is to have some thing like a Logo in the bottom of the screen. It also has a small design in the corners of the screen.

Thanks in advance!


Solution

  • Are you sure you named your image image_name.9.png file name