title: Gradients and shadows on buttons
body: <p>Is it possible to programatically, or via xml configuration (and not via 9patch png), to achieve the effects as seen on Springpad widget:</p>
  
  <p><img src="https://i.stack.imgur.com/8pNRq.jpg" alt="enter image description here"></p>
  
  <p>If you look closely, there's a sharp border/line between the upper (brighter) and lower (darker) gradients. Also, there are inner and outer shadows for that embossed area on the right.</p>
  
  <p>I know how to set gradient background on a button, but that gradient is constant, without that sharp line in the middle. Also, I couldn't find any reference on shadow creation and manipulation.</p>
  
  <p>Thanks.</p>