I got a 9 patch image which is the background of some imageview on my project.

however, the image is drawn with the black pixel of the 9-patch tool.

this is not the first time i use 9 patch...but somehow it's not working now.

The image is 100% png, and the extension of the file is ".9.png"

what can cause this?

thanks!

有帮助吗?

解决方案

It has happened to me before in a perfect 9-patch image. My advice is, if you are using Eclipse, clean your project (thus regenerating the resource files), uninstall the application and deploy again.

If that doesn't work at first or second try, it's probably a problem concerning the image.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top