title: Animation While Setting Background Drawable
body: <p>I have a textView, which displays some name, say (<strong>Harley</strong>), then on click of a button, i am setting background of <strong>Harley</strong> as a drawable shape and also it's color.
  It's all working fine.</p>
  
  <p>I want to apply an animation while background is being set, it should appear as if while setting the background it's scaling up.</p>
  
  <p>I tried using scale animation on the textView, but no luck.</p>
  
  <p>Any help or suggestions would be appreciated. </p>
  
  <p>I have solved this problem, by applying <strong>ScaleAnimation</strong> after drawable is set to the textView.</p>
  
  <pre><code>ScaleAnimation mScaleAnimation = new ScaleAnimation(0.0f, 1.0f,
                  0.0f, 1.0f,
                  Animation.RELATIVE_TO_PARENT, 0.5f,
                  Animation.RELATIVE_TO_PARENT, 0.5f);
          mScaleAnimation.setDuration(500);
  
   viewRoboto.clearAnimation();
   viewRoboto.setAnimation(mScaleAnimation);
  </code></pre>