title: Dynamic scale animation on replacing Fragment
body: <p>I want to replace a fragment with animation but it has to be dynamic every time, i.e. it will start from the point where I will click on the screen but <code>fragmentTransaction.setCustomAnimations</code> method uses the predefined animation defined in anim folder like this:</p>
  
  <pre><code>fragmentTransaction.setCustomAnimations(R.anim.bounce, R.anim.bounce);
  </code></pre>
  
  <p>I create object of <code>ScaleAnimation</code> to meet my need like this:</p>
  
  <pre><code>ScaleAnimation animation = new ScaleAnimation(fromX,ToX,fromY,toY,pivitX,pivotY);
  animation.setDuration(500);
  </code></pre>
  
  <p><code>fragmentTransaction.setCustomAnimations</code> method does not accept <code>scaleAnimation</code> it only accepts int. So how to attain dynamic animation while replacing fragment.</p>