List of utility methods to do Animation Create
Animation | mainFragmentBackFromLeft() 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; ... |
Animation | mainFragmentBackFromLeftAt(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; |
Animation | mainFragmentBackFromRight(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); ... |
Animation | mainFragmentBackFromRightAt(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; |
Animation | mainFragmentMoveLeft(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()); ... |
Animation | mainFragmentMoveLeftAt(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; |
Animation | mainFragmentMoveRight(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()); ... |
Animation | mainFragmentMoveRightAt(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; |
Animation | outToBottomAnimation() 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()); ... |
Animation | outToBottomAnimation(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()); ... |