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

import android.view.animation.LinearInterpolator;

public class Main {
    public static Animation fadeIn(final android.view.animation.Animation.AnimationListener animationlistener) {
        final AlphaAnimation alphaanimation = new AlphaAnimation(0F, 1F);
        alphaanimation.setDuration(300L);
        alphaanimation.setInterpolator(new LinearInterpolator());
        alphaanimation.setAnimationListener(animationlistener);
        return alphaanimation;
    }
}