Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.animation.Animation;

import android.view.animation.TranslateAnimation;

public class Main {
    public static Animation getUpAnimation(int height) {
        Animation animation = new TranslateAnimation(Animation.ABSOLUTE, 0, Animation.ABSOLUTE, 0,
                Animation.ABSOLUTE, height, Animation.ABSOLUTE, 0);
        animation.setDuration(800);
        //        animation.setFillAfter(true);
        return animation;
    }
}