title: want to start activity after completion of animation of imageview
body: <p>I want to <code>rotate</code> <code>imageview</code> and then I want to start <code>activity</code> onClick of <code>imageview</code> but the problem is that android system doesn't give the time to complete the <code>animation</code> and launching the activity. So how can I show the animation completely and then calling the activity.
  This is my xml code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;rotate xmlns:android="http://schemas.android.com/apk/res/android"
      android:duration="200"
      android:fromDegrees="-7"
      android:pivotX="50%"
      android:pivotY="50%"
      android:repeatMode="reverse"
      android:toDegrees="7" /&gt;
  </code></pre>
  
  <p>And this  code:</p>
  
  <pre><code>      public void onImageViewClicked(View view){
          switch(view.getId()){
              case R.id.viewstock:
                  Animation shakeV = AnimationUtils.loadAnimation(this,     R.anim.shake);
                  view.startAnimation(shakeV);
                  startActivityForResult(intent, 12);
                  break;
              case R.id.about:
                  Animation shakeA = AnimationUtils.loadAnimation(this,     R.anim.shake1);
  
  
                   view.startAnimation(shakeA);
              Intent aboutIntent = new Intent(MainActivity.this,AboutActivity.class);
              startActivity(aboutIntent);
              break;
      }
  }
  </code></pre>