my 9 Patch Image stopped working

后端 未结 2 1418
生来不讨喜
生来不讨喜 2021-01-19 00:46

I have been using 9 patch images for a while now. But have come to an issue. The GUI designer in Eclipse tells me that the image works fine. And it looks how it should.

2条回答
  •  执笔经年
    2021-01-19 01:16

    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.

提交回复
热议问题