Example usage for android.view.animation AnimationUtils loadInterpolator

List of usage examples for android.view.animation AnimationUtils loadInterpolator

Introduction

In this page you can find the example usage for android.view.animation AnimationUtils loadInterpolator.

Prototype

public static Interpolator loadInterpolator(Context context, @AnimRes @InterpolatorRes int id)
        throws NotFoundException 

Source Link

Document

Loads an Interpolator object from a resource

Usage

From source file:com.heinrichreimersoftware.materialintro.app.IntroActivity.java

@SuppressWarnings("unused")
public void setPageScrollInterpolator(@InterpolatorRes int interpolatorRes) {
    this.pageScrollInterpolator = AnimationUtils.loadInterpolator(this, interpolatorRes);
}

From source file:com.zertinteractive.wallpaper.MainActivity.java

@SuppressWarnings("NewApi")
private void setupWindowAnimations() {
    interpolator = AnimationUtils.loadInterpolator(this, android.R.interpolator.linear_out_slow_in);
    setupEnterAnimations();/*from   w  ww  . j  a  v a  2s.  co m*/
    setupExitAnimations();
}