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.AccelerateInterpolator;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;

public class Main {
    static int DURATION = 650;

    public static Animation fadeOut() {
        Animation fadeout = new AlphaAnimation(+1.0f, 0.0f);
        fadeout.setDuration(DURATION);
        fadeout.setInterpolator(new AccelerateInterpolator());
        return fadeout;
    }
}