title: ObjectAnimator vs TranslateAnimation
body: <p>I just do a simple project where I try to show/hide a layout on the top of a LinearLayout with TranslateAnimation. There was a flicker because when I call onAnimationEnd(), the animation wasn't finished for 0.1sec.</p>
  
  <p>Example:</p>
  
  <pre><code>            @Override
              public void onAnimationEnd(Animation animation) {
                  retractableLayout.setVisibility(View.GONE);
              }
  </code></pre>
  
  <p>When I search on stackoverflow, I found there's another way to do it. With ObjectAnimator. After using it, my animation was fine without a <code>View.GONE</code></p>
  
  <p>What is the difference between TranslateAnimation and ObjectAnimator? Is one of them is deprecated and they do the same thing or there's a time when one or the other is better.</p>
  
  <p>Here's a github repo with the 2 versions (<a href="https://github.com/charlesvigneault/AAA_Test1" rel="noreferrer">https://github.com/charlesvigneault/AAA_Test1</a>)</p>
  
  <p>Thanks</p>