Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.view.View;

public class Main {
    public static void fadeOutView(final View view) {
        view.animate().alpha(0f).setListener(new AnimatorListenerAdapter() {

            public void onAnimationEnd(Animator animation) {
                view.setVisibility(View.INVISIBLE);
                view.setAlpha(1f);
                view.animate().setListener(null);
            }
        });
    }
}