Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • I created the image in photoshop as png interlaced image, the background is transparent. I placed the black pixels at the very top/bottom/left/right of the image. still got the black pixels when I run my app Commented Dec 19, 2011 at 15:33
  • and you did name your image something.9.png, the .9 is very important. You can see if it helps if you import your saved image in draw9patch (android-sdk/tools/draw9patch) and save it out again. Commented Dec 19, 2011 at 15:34
  • J did "save 9-patch" and just copied into eclipse, the name is row.9.png Commented Dec 19, 2011 at 16:00
  • 1
    I tried using it in a layout, and it worked without problem. The only thing I can think of is that android haven't updated your resource properly. You can try to refresh your res folders, and clean the project (and make sure that you don't have any other files with the same name). Commented Dec 19, 2011 at 17:12
  • 1
    Oh, and by the way, if you do get it to work, you can shrink your image even more, all you really need is the rounded corners and one pixel in the centre to stretch. Commented Dec 19, 2011 at 17:13