title: How does TranslateAnimation work on Android?
body: <p>I went through </p>
  
  <pre><code>TranslateAnimation (float fromXDelta, float toXDelta, float fromYDelta, float toYDelta)
  </code></pre>
  
  <p>but am still confused about how <code>Translate animation</code> works.</p>
  
  <p>Can someone please explain how it works? I read the docs which say</p>
  
  <pre><code>fromXDelta  Change in X coordinate to apply at the start of the animation
  toXDelta    Change in X coordinate to apply at the end of the animation
  fromYDelta  Change in Y coordinate to apply at the start of the animation
  toYDelta    Change in Y coordinate to apply at the end of the animation 
  </code></pre>
  
  <p>but it is still not clear to me how it works.</p>
  
  <p><strong>EDIT</strong>:  I have a <code>Button</code> and a <code>LinearLayout</code> without any children. When I am clicking on the <code>Button</code> I want to dynamically generate a <code>TextView</code> and animate that <code>TextView</code> to appear in the <code>LinearLayout</code>. The number of <code>TextView</code>s will depend upon the number of clicks on the Button. </p>