Draw9patch 未正确显示
我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果这是库中的 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.