title: Button Fall Down One After Another Animation Android
body: <p>I have 3 buttons in a RelativeLayout, I have achieved falling down animation (bounce) for each buttons, but all buttons are falling down at the same time. What I want is on starting this activity each button should fall down from top one after another. How can I achieve this effect.?</p>
  
  <p>My java code</p>
  
  <pre><code>import android.animation.ObjectAnimator;
  import android.app.Activity;
  import android.os.Bundle;
  import android.view.View;
  import android.animation.PropertyValuesHolder;
  import android.view.ViewPropertyAnimator;
  import android.view.animation.BounceInterpolator;
  import android.widget.Button;
  
  public class MainActivity extends Activity {
      Button ib,b2,b3;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          ib = (Button) findViewById(R.id.btnAnim);
          b2 = (Button) findViewById(R.id.btnAnim2);
          b3 = (Button) findViewById(R.id.btnAnim3);
          aniMate(ib);
          aniMate(b2);
          aniMate(b3);
      }
      public void aniMate(Button b){
          ObjectAnimator animY = ObjectAnimator.ofFloat(b, "translationY", -1000f, 0f);
          animY.setDuration(1000);
          animY.setInterpolator(new BounceInterpolator());
          animY.setRepeatCount(0);
          animY.start();
      }
  }
  </code></pre>
  
  <p>My XML code</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:padding="16dip"
      tools:context=".MainActivity"&gt;
  
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="New Button"
          android:id="@+id/btnAnim"
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true" /&gt;
  
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="New Button"
          android:id="@+id/btnAnim2"
          android:layout_above="@+id/btnAnim"
          android:layout_centerHorizontal="true" /&gt;
  
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="New Button"
          android:id="@+id/btnAnim3"
          android:layout_above="@+id/btnAnim2"
          android:layout_centerHorizontal="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>