title: Android: Updating a LinearLayout position after animation is complete
body: <p>Any help with the following problem would be greatly appreciated. I know what I need to do and I have checked the Developer docs, but the exact syntax I need to use eludes me (I'm a noob).</p>
  
  <p>Here's what I'm doing. I have a translate.xml file in res/anim that works fine. It looks like this:</p>
  
  <pre><code>&lt;translate xmlns:android="http://schemas.android.com/apk/res/android" 
     android:fromXDelta="0%" 
     android:toXDelta="0%" 
     android:fromYDelta="0%" 
     android:toYDelta="10%" 
     android:repeatCount="0" 
     android:duration="1000" 
     android:fillEnabled="true" 
     android:fillAfter="true"/&gt;
  </code></pre>
  
  <p>I'm executing my code like this:</p>
  
  <pre><code>    l = (LinearLayout) findViewById(R.id.linearLayout1);
      a = AnimationUtils.loadAnimation(this, R.anim.translate);
      a.setAnimationListener(new AnimationListener() {
          public void onAnimationStart(Animation anim){};
          public void onAnimationRepeat(Animation anim){};
          public void onAnimationEnd(Animation anim){
              //l.setLayoutParams(params);
          };
      });
  l.startAnimation(a);
  </code></pre>
  
  <p>When the animation is done I would like the LinearLayout it animated to move to it's new position (where the animation moved it to). The reason for this is the LinearLayout contains several form elements the user can interact with.</p>
  
  <p>This is a real simple animation for a fairly simple project. It simply moves the element about 30 pixels down the screen. I wouldn't ask for help except I've been struggling with this for several hours now. I know I need to update the LinearLayout's parameters on the end of the animation, but how exactly? I've read of several different ways and they're all a bit confusing.</p>
  
  <p>Thanks in advance.</p>