Android Animation Create outToBottomAnimation()

Here you can find the source of outToBottomAnimation()

Description

out To Bottom Animation

License

Open Source License

Declaration

static public Animation outToBottomAnimation() 

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  v a  2  s.co m

                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. mainFragmentBackFromRightAt(int from)
  2. mainFragmentMoveLeft(int distance)
  3. mainFragmentMoveLeftAt(int from, int distance)
  4. mainFragmentMoveRight(int distance)
  5. mainFragmentMoveRightAt(int from, int distance)
  6. outToBottomAnimation(long duration)
  7. outToLeftAnimation()
  8. outToRightAnimation()
  9. outToRightAnimation(int duration)