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

Android examples for android.view.animation:slide Animation

Description

get Linear 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 linearOutSlowIn;
    public static Interpolator getLinearOutSlowInInterpolator(
            Context context) {/* ww  w . j  a  va  2 s.c  o m*/
        if (linearOutSlowIn == null) {
            linearOutSlowIn = AnimationUtils.loadInterpolator(context,
                    android.R.interpolator.linear_out_slow_in);
        }
        return linearOutSlowIn;
    }

}

Related Tutorials