Is there a way to stretch the button so that the center remains intact? 9-patch does not allow this.
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.
You can do something like the image below
But make sure you make the background transparent.