Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;

public class Main {
    public static Animation getAlphaAnimation(float startAlpha, float toAlpha, int millisSecond) {
        Animation animation = new AlphaAnimation(startAlpha, toAlpha);
        animation.setDuration(millisSecond);
        return animation;
    }
}