Damir
Damir

Reputation: 56179

9patch border black pixels visible

I need express help with 9 patch. I run draw9patch and change and save as name.9.png and save at res/drawable ( later tried in res/drawable-hdpi but didn't help) but problem is when I show on devic/emilator it doesn't strech and that black pixels at border are still visible ( I thought it is visible only inside 9patch for creating intersection ). Can somebody told me what is wrong ? I saved as name.9.png but it seems like it not recognize like 9.patch

Upvotes: 4

Views: 2634

Answers (2)

user2999943
user2999943

Reputation: 2519

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

Upvotes: 2

Kuffs
Kuffs

Reputation: 35661

Ensure transparency is not set in the outer pixel border that sets the patches. The Draw9Patch tool accepts it so it looks correct but it never actually works in my experience.

Upvotes: 2

Related Questions