Android Animation Create inFromBottomLeftAnimation()

Here you can find the source of inFromBottomLeftAnimation()

Description

in From Bottom Left Animation

License

Open Source License

Declaration

static public Animation inFromBottomLeftAnimation() 

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 inFromBottomLeftAnimation() {

        Animation inFromLeft = new TranslateAnimation(

        Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT,
                0.0f,//from  w w w.j av  a  2s.c om

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

        );

        inFromLeft.setDuration(200);

        inFromLeft.setInterpolator(new LinearInterpolator());

        return inFromLeft;

    }
}

Related

  1. outToBottomAnimation()
  2. outToBottomAnimation(long duration)
  3. outToLeftAnimation()
  4. outToRightAnimation()
  5. outToRightAnimation(int duration)
  6. inFromLeftAnimation()
  7. inFromRightAnimation()
  8. inFromRightAnimation(int duration)