Here you can find the source of mainFragmentBackFromRightAt(int from)
public static Animation mainFragmentBackFromRightAt(int from)
//package com.java2s; import android.view.animation.Animation; import android.view.animation.AnimationSet; import android.view.animation.TranslateAnimation; public class Main { public static Animation mainFragmentBackFromRightAt(int from) { // TODO Auto-generated method stub AnimationSet animationSet = new AnimationSet(true); Animation step2 = new TranslateAnimation(Animation.ABSOLUTE, from, Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0);// w w w . j a v a 2 s. com step2.setDuration(100); animationSet.addAnimation(step2); // animationSet.setInterpolator(new BounceInterpolator()); return animationSet; } }