开发者

Nine-patch image not repeating vertically in QVGA

I have created a Table layout with a number of rows and each row is assigned a ba开发者_C百科ckground image to simulate rounded corner borders. This works all fine except in QVGA where the top image doesn't repeat vertically. Anyone run into this kind of problem? I have tried resaving the image and verifying the patch was correct.

Nine-patch image not repeating vertically in QVGA

Nine-patch image not repeating vertically in QVGA


Did you create two different 9-patches for mdpi and ldpi?

9-patch is not meant to be pre-scaled, sometimes it works but the theory says it shouldn't: when scaling (above all downscaling) the single black pixels of the edges get "shrinked" and then might become semi-transparent, breaking the 9-patch. This seems the case, with your middle/bottom images and the top one.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜