Android Utililty Methods Animation Create

List of utility methods to do Animation Create

Description

The list of methods to do Animation Create are organized into topic(s).

Method

AnimationmainFragmentBackFromLeft()
main Fragment Back From Left
AnimationSet animationSet = new AnimationSet(true);
Animation step2 = new TranslateAnimation(Animation.ABSOLUTE, -700,
        Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0,
        Animation.ABSOLUTE, 0);
step2.setDuration(400);
animationSet.addAnimation(step2);
animationSet.setInterpolator(new BounceInterpolator());
return animationSet;
...
AnimationmainFragmentBackFromLeftAt(int currentX, int distance)
main Fragment Back From Left At
AnimationSet animationSet = new AnimationSet(true);
Animation step2 = new TranslateAnimation(Animation.ABSOLUTE,
        currentX - distance, Animation.ABSOLUTE, 0,
        Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0);
step2.setDuration(100);
animationSet.addAnimation(step2);
return animationSet;
AnimationmainFragmentBackFromRight(int distance)
main Fragment Back From Right
AnimationSet animationSet = new AnimationSet(true);
Animation step1 = new TranslateAnimation(Animation.ABSOLUTE,
        distance, Animation.ABSOLUTE, 720, Animation.ABSOLUTE, 0,
        Animation.ABSOLUTE, 0);
step1.setDuration(200);
Animation step2 = new TranslateAnimation(Animation.ABSOLUTE, 100,
        Animation.ABSOLUTE, -720, Animation.ABSOLUTE, 0,
        Animation.ABSOLUTE, 0);
...
AnimationmainFragmentBackFromRightAt(int from)
main Fragment Back From Right At
AnimationSet animationSet = new AnimationSet(true);
Animation step2 = new TranslateAnimation(Animation.ABSOLUTE, from,
        Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0,
        Animation.ABSOLUTE, 0);
step2.setDuration(100);
animationSet.addAnimation(step2);
return animationSet;
AnimationmainFragmentMoveLeft(int distance)
main Fragment Move Left
AnimationSet animationSet = new AnimationSet(true);
Animation step1 = new TranslateAnimation(Animation.ABSOLUTE,
        distance, Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0,
        Animation.ABSOLUTE, 0);
step1.setDuration(400);
step1.setInterpolator(new LinearInterpolator());
animationSet.addAnimation(step1);
animationSet.setInterpolator(new BounceInterpolator());
...
AnimationmainFragmentMoveLeftAt(int from, int distance)
main Fragment Move Left At
AnimationSet animationSet = new AnimationSet(true);
Animation step1 = new TranslateAnimation(Animation.ABSOLUTE,
        distance - from, Animation.ABSOLUTE, 0, Animation.ABSOLUTE,
        0, Animation.ABSOLUTE, 0);
step1.setDuration(100);
animationSet.addAnimation(step1);
return animationSet;
AnimationmainFragmentMoveRight(int distance)
main Fragment Move Right
AnimationSet animationSet = new AnimationSet(true);
Animation step1 = new TranslateAnimation(Animation.ABSOLUTE,
        -distance, Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0,
        Animation.ABSOLUTE, 0);
step1.setDuration(400);
step1.setInterpolator(new LinearInterpolator());
animationSet.addAnimation(step1);
animationSet.setInterpolator(new BounceInterpolator());
...
AnimationmainFragmentMoveRightAt(int from, int distance)
main Fragment Move Right At
AnimationSet animationSet = new AnimationSet(true);
Animation step1 = new TranslateAnimation(Animation.ABSOLUTE, from
        - distance, Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0,
        Animation.ABSOLUTE, 0);
step1.setDuration(100);
animationSet.addAnimation(step1);
return animationSet;
AnimationoutToBottomAnimation()
out To Bottom Animation
Animation outtoRight = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT,
        0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f,
        Animation.RELATIVE_TO_PARENT, +1.0f
);
outtoRight.setDuration(900);
outtoRight.setInterpolator(new LinearInterpolator());
...
AnimationoutToBottomAnimation(long duration)
out To Bottom Animation
Animation outtoRight = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT,
        0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f,
        Animation.RELATIVE_TO_PARENT, +1.0f
);
outtoRight.setDuration(duration);
outtoRight.setInterpolator(new LinearInterpolator());
...