9patch border black pixels visible

I need express help with 9 patch. I run draw9patch and change and save as .9.png name and save when res / drawable (later tried in res / drawable-hdpi but it didn’t help), but the problem is that I am showing it on devic / emilator and it doesn’t stretch and the black pixels on the border are still visible (I thought it was only visible inside 9patch to create the intersection). Maybe someone told me what's wrong? I saved as the name .9.png, but it does not seem to recognize it like 9.patch

+4
source share
2 answers

Make sure that transparency is not set on the outer border of the pixel that sets the patches. The Draw9Patch tool accepts it so that it looks correct, but in fact it never works in my experience.

+2
source

Make sure your 9patch image is named like this: imageName.9.png

+2
source

Source: https://habr.com/ru/post/1381268/


All Articles