Animation Arrow in android, start and stop
<p>I have been created the animation arrow. When I press the button then it rotate -45 degree and then goes back arrow. 
My Question is: I want to stop the arrow at -45 degree. When I click the button again then it should move the arrow -45 to -90 and so on.
Please help me regarding this problem. thanks</p>

<p>I am placing code here.</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
 &lt;set xmlns:android="http://schemas.android.com/apk/res/android"
    android:shareInterpolator="false"&gt;

        &lt;rotate
            android:fromDegrees="0"
            android:toDegrees="-45"
            android:toYScale="0.0"
            android:pivotX="50%"
            android:pivotY="50%"
            android:duration="400"


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

<hr>

<h2>hyperspace_jump.xml</h2>

<pre><code>package kh.qasim;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ImageView;

public class CustomAnimationActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.main);
        final ImageView image = (ImageView) findViewById(R.id.imageView1);
        final Animation hyperspaceJump = AnimationUtils.loadAnimation(this, R.anim.hyperspace_jump);
        Button btn = (Button) findViewById(R.id.button1);
        btn.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View arg0) {
                // TODO Auto-generated method stub

                    image.startAnimation(hyperspaceJump);

            }
        });

    }
}
</code></pre>

<hr>

<h2>CustomAnimationActivity.java</h2>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;
&lt;TextView  
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:text="@string/hello"
    /&gt;
&lt;Button android:text="Button" android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content"&gt;&lt;/Button&gt;
&lt;ImageView android:id="@+id/imageView1" android:src="@drawable/up" android:layout_width="203dp" android:layout_height="148dp"&gt;&lt;/ImageView&gt;
&lt;/LinearLayout&gt;
</code></pre>

<hr>

<h2>main.xml</h2>
