Draw9patch 未正确显示

发布于 2024-12-21 03:29:44 字数 272 浏览 3 评论 0原文

我的 9patch 图像有问题。我使用 9patch 图像几个月都没有问题,但现在,我的一些图像不想再正常工作了。 问题是,某些图像的显示效果就像未经过 9 修补一样,我可以在设备屏幕上看到图像周围的黑色像素。

我尝试通过清理项目来解决问题,但没有任何改变。

有人遇到这个问题吗?我该如何解决?

谢谢

PS:抱歉我的英语不好,我说法语:-)

解决方案: 我只是找到解决方案。我从我的可绘制文件夹中删除了所有图像并在其中重写它们。

谢谢

I have a problem with my 9patch images. I use 9patch images for months without problem but now, some of my images don't want to work normaly anymore.
The problem is that some images are showed like if they wasn't 9patched and I can see the black pixels around the image on my device's screen.

I tried to solve the problem by cleaning the project but nothing changed.

Did somebody have this problem? How can I solve it?

Thank you

PS: Sorry for my poor English, I speak frensh :-)

Solution:
I just find the solution. I deleted all my images from my drawable folder and rewrite they in it.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

盗心人 2024-12-28 03:29:44

如果这是库中的 9patch。自工具版本 14 起,存在一个已知的问题

除了一些解决方案外,没有好的解决方案强制清洁。

If this is a 9patch in a library. There is a knowen issue up for a problem as of the tools relase 14.

No good solution though apart from some forced cleaning.

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