Java tutorial
//package com.java2s; //License from project: LGPL import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.view.animation.AnimationUtils; import android.view.animation.Interpolator; public class Main { private static Interpolator fastOutSlowIn; @TargetApi(Build.VERSION_CODES.LOLLIPOP) public static Interpolator getFastOutSlowInInterpolator(Context context) { if (fastOutSlowIn == null) { fastOutSlowIn = AnimationUtils.loadInterpolator(context, android.R.interpolator.fast_out_slow_in); } return fastOutSlowIn; } }