title: Buttons of different size sharing the same drawable as background
body: <p>My application has a big button with an oval shape as background, it is runtime created. Let's name this button A.</p>
  
  <p>When I enable some function the visibility of A is set to GONE, and four smaller buttons are shown, with the same background of A. </p>
  
  <p>When I hide the buttons and show A again, it has proper size, but the background drawable is still of the size of the smaller buttons previously drawn. How can i resize it so that it fills the size of the A button?</p>
  
  <p><strong>Update:</strong> My code</p>
  
  <pre><code>//BigButton.java
  //...
  GradientDrawable idle = new GradientDrawable();
  idle.setColor(Color.rgb(red, green, blue));
  idle.setShape(GradientDrawable.OVAL);
  idle.setStroke(2, Color.rgb(red2, green2, blue2));
  btn.setWidth(50*3f);
  btn.setHeight(65*3f);
  btn.setBackgroundDrawable(idle);
  //...
  
  //ChildButton.java
  //...
  GradientDrawable idle = BigButton.this.getIdleDrawable();
  btn2.setWidth(50);
  btn2.setHeight(65);
  btn2.setBackgroundDrawable(idle);
  //...
  </code></pre>
  
  <p><strong>Update2:</strong> The following creates a new drawable so that there's no resource sharing between parent and child buttons. </p>
  
  <pre><code>GradientDrawable idle = (GradientDrawable) ButtonSetupPanel.this.caller.getIdle().getConstantState().newDrawable();
  </code></pre>