Stretch button with non-extensible center area

Is there a way to stretch the button so that the center remains intact? 9-patch does not allow this. enter image description here

EDIT: I used the 9 patch as Benito recommended. And it works great. It's strange that the first time I couldn't get it. enter image description here

+3


source to share


1 answer


You can do something like the image below

9-patch image



But make sure you make the background transparent.

+4


source







All Articles