Android Animation Create outToBottomAnimation(long duration)

Here you can find the source of outToBottomAnimation(long duration)

Description

out To Bottom Animation

License

Open Source License

Declaration

static public Animation outToBottomAnimation(long duration) 

Method Source Code

//package com.java2s;

import android.view.animation.Animation;

import android.view.animation.LinearInterpolator;

import android.view.animation.TranslateAnimation;

public class Main {
    static public Animation outToBottomAnimation() {

        Animation outtoRight = new TranslateAnimation(

        Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT,
                0.0f,/*from  w w w  . j  a  va  2  s.  c  om*/

                Animation.RELATIVE_TO_PARENT, 0.0f,
                Animation.RELATIVE_TO_PARENT, +1.0f

        );

        outtoRight.setDuration(900);

        outtoRight.setInterpolator(new LinearInterpolator());

        return outtoRight;

    }

    static public Animation outToBottomAnimation(long duration) {

        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());

        return outtoRight;

    }
}

Related

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