Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.View;
import android.view.animation.AlphaAnimation;

public class Main {

    public static void disappear(long during, View view) {
        AlphaAnimation disappearAnimation = new AlphaAnimation(1, 0);
        disappearAnimation.setDuration(during);
        disappearAnimation.setFillAfter(true);
        view.startAnimation(disappearAnimation);
    }
}