Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.DecelerateInterpolator;

public class Main {
    static int DURATION = 650;

    public static Animation fadeIn() {
        Animation fadein = new AlphaAnimation(0.0f, +1.0f);
        fadein.setDuration(DURATION);
        fadein.setInterpolator(new DecelerateInterpolator()); // start quickly...
        return fadein;
    }
}