问题描述
我试图使用从Android SDK中的Draw9Patch工具,但随即在与Draw9Patch打开我的形象,它显示了我所有的图像区域作为的'坏补丁。我手工画的定义拉伸区域的线条,但我不能确定这是否会正常工作。有人能解释为什么这个特定的形象是不是一个好补丁?似乎其他#1这个问题的答案并不关联到我的问题,或者我不理解他们。
I'm attempting to use the Draw9Patch tool from the Android SDK, but immediately upon opening my image with Draw9Patch it shows all of my image area as a 'Bad Patch.' I manually drew in the lines that define the stretchable areas, however I am unsure if this will work properly. Could someone explain why this specific image is not a 'good patch'? Other Stackoverflow answers to this question do not seem to correlate to my problem or I am not understanding them.
推荐答案
老,但我有同样的问题。 坏补丁的事情肯定是混乱的,但不会从工作停止你的绘制。 dev的网站说,这基本上是一个警告,这些补丁网站捉襟见肘时可能产生的图形神器。
Old, but I had the same question. The "bad patch" thing is definitely confusing, but won't stop your drawable from working. The dev sites says it's basically a warning that those patch sites "may produce artifacts in the graphic when stretched".
如果你看很多的股票Android的可绘制你会发现它们包含坏补丁。因此,只要测试他们,如果他们看起来很好,我不会担心。
If you look at a lot of the stock Android drawables you'll see that they contain "bad patches". So just test them out and if they look fine I wouldn't worry about it.
这篇关于在9补丁文件坏“补丁”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!