title: Animate margin change
body: <p>I use this code for animate view in android its work perfect
  problem when I set margin to zero or margin less the current margin its doesn't animate</p>
  
  <p>the code</p>
  
  <pre><code>          int margin = 100;
  
  
              ValueAnimator varl = ValueAnimator.ofInt(margin);
              varl.setDuration(200);
              varl.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
  
                  @Override
                  public void onAnimationUpdate(ValueAnimator animation) {
                      RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) myView.getLayoutParams();
                      lp.setMargins((Integer) animation.getAnimatedValue(), 0, 0, 0);
                      myView.setLayoutParams(lp);
                  }
              });
              varl.start();
  </code></pre>
  
  <p>Now when I set margin to 100 it animates, but when I want to set it to zero its set margin without animation</p>
  
  <pre><code> int margin = 0;
  
  
  
              ValueAnimator varl = ValueAnimator.ofInt(margin);
              varl.setDuration(200);
              varl.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
  
                  @Override
                  public void onAnimationUpdate(ValueAnimator animation) {
                      RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) myView.getLayoutParams();
                      lp.setMargins((Integer) animation.getAnimatedValue(), 0, 0, 0);
                      myView.setLayoutParams(lp);
                  }
              });
              varl.start();
  </code></pre>