Java tutorial
//package com.java2s; import android.animation.Animator; import android.view.View; import android.view.animation.DecelerateInterpolator; public class Main { public static void translationY(View view, int translationY, int duration, int startDelay) { view.animate().translationY(translationY).setDuration(duration).setStartDelay(startDelay); } public static void translationY(View view, int translationY, int duration, int startDelay, Animator.AnimatorListener listener) { view.animate().translationY(translationY).setDuration(duration).setStartDelay(startDelay) .setInterpolator(new DecelerateInterpolator()).setListener(listener); } }