title: Animation of moving one view in place of another view
body: <p>I'm trying to move one view with <strong>animation</strong> to another, but so far nothing works. I have two views in <strong>RelativeLayout</strong> and one view should replace the other as follows:
  I try it but it doesnt work:</p>
  
  <pre><code>TranslateAnimation translateAnimation = new TranslateAnimation(0, second_view.getX(), 0, second_view.getY());
  view.startAnimation(translateAnimation);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/FHQcJ.png" rel="nofollow noreferrer">view_screenshot_image</a></p>