my 9 Patch Image stopped working

為{幸葍}努か 提交于 2019-12-01 17:45:28

This is definitely an issue with the latest SDK. Instructions on how to resolve this can be found here:

http://codetrips.blogspot.com/2010/12/android-draw-9-patch-seems-broken-too.html

Basically you just need to add a missing jar file into the [sdk-install-dir]/tools/lib folder.

Ok so Im not sure if this fixed anything but I opened them and saved them again and they did not funciton still. But then I opened them and edited them. (added a pixel and saved. Then removed that pixel and saved again.) and returned them to their original data. And that seemed to fix the issue. Maybe having not edited them caused draw9patch.bat not to actually re create them. However editing them and saving them caused them to be re created and therefore they worked again.

Odd issue. and I dont know why it happened since the image was not broken and rendered in eclipse fine. But all is well again.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!