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

AnimationoutToLeftAnimation()
out To Left Animation
Animation outtoLeft = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT,
        -1.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f
);
outtoLeft.setDuration(200);
outtoLeft.setInterpolator(new AccelerateInterpolator());
...
AnimationoutToRightAnimation()
out To Right Animation
Animation outtoRight = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT,
        +1.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f
);
outtoRight.setDuration(200);
outtoRight.setInterpolator(new AccelerateInterpolator());
...
AnimationoutToRightAnimation(int duration)
out To Right Animation
Animation outtoRight = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT,
        +1.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f
);
outtoRight.setDuration(duration);
outtoRight.setInterpolator(new AccelerateInterpolator());
...
AnimationinFromBottomLeftAnimation()
in From Bottom Left Animation
Animation inFromLeft = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT,
        0.0f,
        Animation.RELATIVE_TO_PARENT, 1.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f
);
inFromLeft.setDuration(200);
inFromLeft.setInterpolator(new LinearInterpolator());
...
AnimationinFromLeftAnimation()
in From Left Animation
Animation inFromLeft = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT,
        0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f
);
inFromLeft.setDuration(200);
inFromLeft.setInterpolator(new AccelerateInterpolator());
...
AnimationinFromRightAnimation()
in From Right Animation
Animation inFromRight = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT,
        0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f
);
inFromRight.setDuration(200);
inFromRight.setInterpolator(new AccelerateInterpolator());
...
AnimationinFromRightAnimation(int duration)
in From Right Animation
Animation inFromRight = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT,
        0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f,
        Animation.RELATIVE_TO_PARENT, 0.0f
);
inFromRight.setDuration(duration);
inFromRight.setInterpolator(new AccelerateInterpolator());
...