9 绘制的补丁图像有黑色像素,为什么?
我得到了一个 9 补丁图像,它是我的项目中某些图像视图的背景。
但是,图像是使用 9-patch 工具的黑色像素绘制的。
这不是我第一次使用 9 补丁...但不知何故它现在不起作用。
图像是100% png,文件扩展名是“.9.png”,
这是什么原因造成的?
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我以前在完美的 9 块图像中也遇到过这种情况。我的建议是,如果您使用 Eclipse,请清理您的项目(从而重新生成资源文件),卸载应用程序并再次部署。
如果第一次或第二次尝试不起作用,则可能是图像问题。
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.