As a last resort, whenever you find it difficult to find 9 patches that will be recognized as such, I find it always better to just make a BRAND NEW image file in your image creation software, copy everything except 4 1 -pixel for your source image, and then paste into a new image file. Sometimes, no matter how much you remove the 4 edges, the device / emulator still cannot recognize it as a 9-patch, although (and this probably should be due to the Android SDK dev command), this is perfectly normal 9-patch in Eclipse graphic layout.
Also note that black lines on the right and bottom edges are optional. They indicate "padding", in particular the area in which the content fits (a parent of a parent with a background of 9 patches).
source share