get Fast Out Slow In Interpolator - Android android.view.animation

Android examples for android.view.animation:slide Animation

Description

get Fast Out Slow In Interpolator

Demo Code

import android.animation.Animator;
import android.animation.TimeInterpolator;
import android.annotation.TargetApi;
import android.content.Context;
import android.util.ArrayMap;
import android.view.animation.AnimationUtils;
import android.view.animation.Interpolator;
import java.util.ArrayList;

public class Main{

    private static Interpolator fastOutSlowIn;
    public static Interpolator getFastOutSlowInInterpolator(Context context) {
        if (fastOutSlowIn == null) {
            fastOutSlowIn = AnimationUtils.loadInterpolator(context,
                    android.R.interpolator.fast_out_slow_in);
        }//from w  ww.  j  ava2s  . co  m
        return fastOutSlowIn;
    }

}

Related Tutorials