The nine patch line are being shown when I'm running it on the actual device. Previewing the xml file on eclipse works just fine, no black line on top and bottom of my image. However running in on actual device, the line is being shown.
I've already tried editing it in drawninepatch. The filename includes .9, and I've already tried setting the padding to 0dp. BTW, I'm setting the background of a TextView here.
Sorry, here goes:
you draw only top line. No left line.
for nine patch top and left lines are must. If you do not want to scale left
line then just make it complete. You can not leave it empty.
Right and bottom are optional. But if you seting content padding for Right
, then to draw line for bottom is must!