Android onClick start's two animation, should only start one
<p>Depending on which animation I click first, the second animation will always set off the first animation. I have no idea what I'm doing incorrectly.</p>

<pre><code>import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.TranslateAnimation;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

public class Test extends Activity {
    ImageView img_left;
    ImageView img_right;
    Button left;
    Button right;
    TranslateAnimation moveup;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test);

        moveup = new TranslateAnimation(0, 0, 0, -900);
        moveup.setDuration(2000);
        moveup.setFillAfter(true);
        left = (Button) findViewById(R.id.left);
        right = (Button) findViewById(R.id.right);
        img_left = (ImageView) findViewById(R.id.image_left);
        img_right = (ImageView) findViewById(R.id.image_right);
        right.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                img_right.startAnimation(moveup);
                Toast.makeText(getApplicationContext(), "right", Toast.LENGTH_LONG).show();
            }

        });

        left.setOnClickListener(new OnClickListener() {

            public void onClick(View v) {
                img_left.startAnimation(moveup);
                Toast.makeText(getApplicationContext(), "left", Toast.LENGTH_LONG).show();
            }

        });

    }

}
</code></pre>

<p>Layout:</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#ffffff"
    tools:context=".First" &gt;

    &lt;LinearLayout
        android:id="@+id/linearLayout1"
        android:layout_width="match_parent"
        android:layout_height="120dp"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true" &gt;

        &lt;Button
            android:id="@+id/left"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:background="#0000EE"
            android:text="" /&gt;

        &lt;Button
            android:id="@+id/right"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_weight="1"
            android:background="#0000EE"
            android:text="" /&gt;
    &lt;/LinearLayout&gt;

    &lt;ImageView
        android:id="@+id/image_left"
        android:layout_width="200dp"
        android:layout_height="200dp"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:src="@drawable/cue1" /&gt;

    &lt;ImageView
        android:id="@+id/image_right"
        android:layout_width="200dp"
        android:layout_height="200dp"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:src="@drawable/cue2" /&gt;

&lt;/RelativeLayout&gt;
</code></pre>
