Android Patch - 9

I am trying to create a new Spinner background using 9 patch images. I tried many ways to get the perfect image, but I failed: s

Here is my 9th patch: enter image description here

The content looks good when I simulate Draw-9-patch, but the arrow part is not displayed, or when it is, that part is not fully formed.

I put the top black line on the whole size and the problem is the same.

Do you know how to solve it?

Thank.

Sincerely.

V.

+3


source to share


1 answer


First of all, you marked the rounded corners as stretchable, this should be avoided so your corners stay the same no matter how it stretches. You also noted that the arrow stretches vertically, which I suppose is undesirable.



See the attached image for a fixed 9-patch (note the differences in the 9-patch frame compared to your image), this should scale well in all directions. 9-patch dropdown

+10


source







All Articles