title: Android: Adding animation when the app is loaded
body: <p>I have this animation that makes a small "pop up" effect on a ImageButton whenever it is clicked:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;scale xmlns:android="http://schemas.android.com/apk/res/android"
  android:fromXScale="0.9"
  android:toXScale="1.05"
  android:fromYScale="0.9"
  android:toYScale="1.05"
  android:pivotX="50%"
  android:pivotY="50%"
  android:duration="180"
  /&gt;
  </code></pre>
  
  <p>How can i fix it so that when the app is loaded the animation is launched once, just to "show that the ImageButton is clickable"?</p>
  
  <p>Here is the ImageButton code:</p>
  
  <pre><code>    final ImageButton a = (ImageButton) findViewById(R.id.imageNew);
      a.setOnClickListener(new OnClickListener() {
  
      @Override
      public void onClick(View arg0) {
          Animation anim = AnimationUtils.loadAnimation(MainActivity.this, R.anim.animation);
          a.startAnimation(anim);
  
          Intent intent = new Intent(MainActivity.this,NewActivity.class);
          startActivity(intent);
      }
  });
  </code></pre>