Nine patch image not working on my device?

前端 未结 4 1053
一生所求
一生所求 2020-12-06 23:41

This is the first time i use nine-patch image on my android app. It so stupit. When I preview on eclipse layout editor, it work. But when I build the application on real dev

4条回答
  •  余生分开走
    2020-12-07 00:38

    The image I'm using has a shadow, and brilliantly I assumed that it ends before it reaches the last pixel of the image... and so didn't bother to enlarge the image by a pixel... (I know the 9 patch tool is doing this for me but I was in the middle of editing the image so I just added it there)

    So the problem is The preview can handle pixels with alpha, the 9-patch tool can handle it as well, but the device cannot!

提交回复
热议问题