android 9-patch graphic doesn't scale in image view

前端 未结 4 1495
旧时难觅i
旧时难觅i 2021-02-01 10:37

I have



        
4条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 11:33

    Also check to make sure your scale lines on the sides don't extend all the way to the corners of the image. I knew it didn't really make sense for there to be black pixels there, but I figured Android would ignore them, but it actually prevents the scaling from working. It also gives you the "ERROR: 9-patch image xxx.9.png malformed" message in the output window, but you might not have noticed this. As soon as I took out the pixels in the corners, it started working for me.

提交回复
热议问题