Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.view.animation.Animation;

import android.view.animation.DecelerateInterpolator;

import android.view.animation.TranslateAnimation;

public class Main {
    public static Animation inFromBottomQuickAnimation(
            final android.view.animation.Animation.AnimationListener animationlistener) {
        final TranslateAnimation translateanimation = new TranslateAnimation(2, 0F, 2, 0F, 2, 1F, 2, 0F);
        translateanimation.setDuration(300L);
        translateanimation.setInterpolator(new DecelerateInterpolator());
        translateanimation.setAnimationListener(animationlistener);
        return translateanimation;
    }
}