title: Stroke of drawable clips when size increases
body: <p>I have a drawable circle</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android"
         android:shape="oval"&gt;
      &lt;gradient 
          android:type="radial"
          android:startColor="#FFFFFF"
          android:endColor="#EEEEEE"
          android:gradientRadius="90"
          /&gt;
      &lt;size android:width="50dp" android:height="50dp"/&gt;
      &lt;stroke android:width="2dp" android:color="#999999"/&gt;
  &lt;/shape&gt;
  </code></pre>
  
  <p>And I'm trying to change the stroke of this circle on code side, like so:</p>
  
  <pre><code>public void onStrokeNeedsToChange(int newStroke)
  {
      GradientDrawable gradientDrawable = (GradientDrawable)mButton.getBackground();
      gradientDrawable.setStroke(newStroke, Color.RED);
  }
  </code></pre>
  
  <p>However, when I change the size of the stroke it is being clipped as if the whole drawable button is inside of a square.</p>
  
  <p>Does anybody know how to increase the size of the stroke without it clipping?</p>
  
  <p><img src="https://i.stack.imgur.com/DOtIs.png" alt="Clipping"></p>