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 hideAlphaAnimation(View v, long durationMillis) {
        AlphaAnimation animation = new AlphaAnimation(1, 0);
        animation.setDuration(durationMillis);
        v.startAnimation(animation);
    }
}