title: How a Translate Animation works: Android
body: <p>I'm trying to move a <code>RelativeLayout</code> using <code>TranslateAnimation</code>. Code I have written for performing the same is:</p>
  
  <pre><code>translateAnimation = new TranslateAnimation(0, 0, heightOfRootView-excuseContainer.getHeight(), currentYPoint);
  translateAnimation.setRepeatMode(0);
  translateAnimation.setDuration(500);
  translateAnimation.setFillAfter(true);
  excuseContainer.startAnimation(translateAnimation);
  </code></pre>
  
  <p>I'm trying to start animation from current y position of particular view
  (I do not need to change x position of view)
  But animation is staring every time from its first y point. How can I perform this action from    current y  position of view to desired position of view.</p>
  
  <p>Here <code>heightOfRootView</code> stands for height of full screen,  <code>excuseContainer</code> is that view which I want to move with animation and <code>currentYPoint</code> is last y point of <code>excuseContainer</code>.</p>
  
  <p>EDIT:
  I there any Translate animation tutorial available. I searched for it but I din't found..</p>
  
  <p>Thanks for your support.</p>