9 绘制的补丁图像有黑色像素,为什么?

发布于 2024-12-27 02:05:16 字数 181 浏览 4 评论 0原文

我得到了一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦太阳 2025-01-03 02:05:16

我以前在完美的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文