scale In ScaleInAnimator - Android android.animation

Android examples for android.animation:Animator

Description

scale In ScaleInAnimator

Demo Code


import android.support.v7.widget.RecyclerView;
import android.view.animation.DecelerateInterpolator;

public class Main{
    public static RecyclerView.ItemAnimator scaleIn() {
        ScaleInAnimator animator = new ScaleInAnimator(
                new DecelerateInterpolator(1.2f));
        animator.setAddDuration(600);//from ww  w  . j a v  a 2s  .c  om
        return animator;
    }
}

Related Tutorials