title: Programmatically add Gradient with solid color and stroke
body: <p>Currently I am using this code to add color:</p>
  
  <pre><code>ShapeDrawable drawable = new ShapeDrawable(new OvalShape());
  drawable.getPaint().setColor(color);
  </code></pre>
  
  <p>Now I need to apply some gradient colors to it along with stroke(like border with different color). I am setting this as background to button.</p>
  
  <p>Here is what I am expecting, I need to do it programmatically.</p>
  
  <p><img src="https://i.stack.imgur.com/Gdalw.png" alt="enter image description here"></p>