Example usage for android.widget ViewAnimator setOutAnimation

List of usage examples for android.widget ViewAnimator setOutAnimation

Introduction

In this page you can find the example usage for android.widget ViewAnimator setOutAnimation.

Prototype

public void setOutAnimation(Context context, @AnimRes int resourceID) 

Source Link

Document

Specifies the animation used to animate a View that exit the screen.

Usage

From source file:Main.java

public static void setAnimation(Context context, ViewAnimator victim, int in_animRrs, int out_animRrs) {
    // victim.setInAnimation(AnimationUtils.loadAnimation(context,
    // animRrs));
    victim.setInAnimation(context, in_animRrs);
    victim.setOutAnimation(context, out_animRrs);
}