0

I'm trying to use a 9-patch png for a Spinner, but the image isn't stretching as expected. I used Android Asset Studio.

Here's what the Spinner looks like: http://i.imgur.com/MOXCccq.jpg?1

and here's what the 9-patch looks like: http://i.imgur.com/gd6ywAu.png

The placement of the image is correct (it should be in the bottom right of the spinner), but I'm not sure why the color distortion is occurring (I want the entire spinner to be white).

Any suggestions? Thanks.

4

1 回答 1

1

您的 9-patch 是问题所在。看起来你从更大的来源缩小了这个比例?在缩小期间,您的边缘像素出现了混叠:

坏 9 补丁

所以你的拉伸点实际上是在半透明像素上。只需将那些边缘像素再次修复为白色,就可以了。

于 2013-10-23T03:54:52.070 回答