title: How do I make a horizontally stretchable background in android
body: <p>I want to make a button background like this</p>
  <p><a href="https://i.stack.imgur.com/1EHRH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1EHRH.png" alt="enter image description here" /></a></p>
  <p>So that when the content gets longer the background only gets stretched form the central region and the circular sides stay CIRCULAR.</p>
  <p><a href="https://i.stack.imgur.com/hPLC3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hPLC3.png" alt="enter image description here" /></a></p>
  <p>I tried to make a 9-patch without a vertical stretch region but the circular sides went oval like in different sizes as you can see in the picture below.</p>
  <p><a href="https://i.stack.imgur.com/YQwJ2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YQwJ2.png" alt="enter image description here" /></a></p>
  <p>when I specify a vertical stretch region in the center, the background becomes like this which I don't want it to. this is an square with rounded corners.</p>
  <p><a href="https://i.stack.imgur.com/qwWNc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qwWNc.png" alt="enter image description here" /></a></p>
  <p>I also have to say that this background is basically a pink border which has a pink drop shadow both on the inside and the outside. I couldn't find a way to implement this with android drawable as there is no efficient way to have a good shadow effect using it</p>
  <p>I can't think of a clean solution for doing so. please help me.</p>