Java tutorial
//package com.java2s; import android.animation.ObjectAnimator; import android.view.View; import android.view.animation.AccelerateDecelerateInterpolator; public class Main { public static void animation4(final View view) { ObjectAnimator animator = ObjectAnimator.ofFloat(view, "translationY", -100f); animator.setDuration(500); animator.setInterpolator(new AccelerateDecelerateInterpolator()); animator.start(); } }