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 showAlpha(View v) {
        v.setVisibility(0);
        AlphaAnimation alphaAnimation = new AlphaAnimation(0, 1);
        alphaAnimation.setDuration(200);
        v.startAnimation(alphaAnimation);
    }
}