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

Android examples for android.view.animation:slide Animation

Description

get Fast Out Linear In Interpolator

Demo Code

import android.content.Context;
import android.view.animation.AnimationUtils;
import android.view.animation.Interpolator;

public class Main {

  private static Interpolator fastOutLinearIn;

  public static Interpolator getFastOutLinearInInterpolator(Context context) {
    if (fastOutLinearIn == null) {
      fastOutLinearIn = AnimationUtils.loadInterpolator(context, android.R.interpolator.fast_out_linear_in);
    }/*from  ww  w.  j a  va2 s  . co  m*/
    return fastOutLinearIn;
  }

}

Related Tutorials