Reputation: 8035
I have this image for imagebutton, and i need to create patch 9 of it.
How should i make 9 patch, so the text and flag will be strecthed and squeezed correctly? I tried a few things and had no luck.
Upvotes: 0
Views: 528
Reputation: 1509
If you have the original assets for the button, it would make the most sense to separate out the grey button from the yellow text/flag. Creating a 9patch from the button itself will be pretty easy and assign that to the ImageButton background property. Leave the yellow with a transparent background centered as the ImageButton source.
Upvotes: 2