Android Animation Create mainFragmentMoveRightAt(int from, int distance)

Here you can find the source of mainFragmentMoveRightAt(int from, int distance)

Description

main Fragment Move Right At

License

Open Source License

Declaration

public static Animation mainFragmentMoveRightAt(int from, int distance) 

Method Source Code

//package com.java2s;

import android.view.animation.Animation;
import android.view.animation.AnimationSet;

import android.view.animation.TranslateAnimation;

public class Main {
    public static Animation mainFragmentMoveRightAt(int from, int distance) {
        // TODO Auto-generated method stub
        AnimationSet animationSet = new AnimationSet(true);
        Animation step1 = new TranslateAnimation(Animation.ABSOLUTE, from
                - distance, Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0,
                Animation.ABSOLUTE, 0);/*from   www.ja va  2s  .  co m*/
        step1.setDuration(100);
        animationSet.addAnimation(step1);
        //      animationSet.setInterpolator(new BounceInterpolator());
        return animationSet;
    }
}

Related

  1. mainFragmentBackFromRight(int distance)
  2. mainFragmentBackFromRightAt(int from)
  3. mainFragmentMoveLeft(int distance)
  4. mainFragmentMoveLeftAt(int from, int distance)
  5. mainFragmentMoveRight(int distance)
  6. outToBottomAnimation()
  7. outToBottomAnimation(long duration)
  8. outToLeftAnimation()
  9. outToRightAnimation()