So here’s my image:

The problem is, draw9patch can’t create normal 9 patch from this (shows errors in padding). Neither does android scale it correctly if I create 9 patch manually, like so:

I believe that it’s a color issue, that android sees the borders of my original image as a part of 9 patch paddings and thus, scales incorrectly.
Is there a way, to create a 9 patch from this?
Thanks in advance 🙂
EDIT
There must be NO extra empty border around original image, or it will persist and will have a white lines around it.
There must be 1 extra pixel added to every side of the raw image to contain 9 patch paddings, so if the original width was 50px, it will be now 52 px.
It’s not the first time I’m making a nine patch< just this time it doesn’t work.
If you don’t believe me, try and do it in draw9patch.bat and you’ll see that it doesn’t add extra border at the top and shows error even on the original image.
EDIT
Ok. NVM, just had to make raw image a bit wider. Now it scales right,
Works just fine for me, just add a dot at the top for the horizontal stretch position, then a line along the left-hand side for the vertical stretch position:
EDIT: Added the second option, still seems to work fine.