Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;

public class Main {
    public static AlphaAnimation fadeBackgroundAnimation() {
        AlphaAnimation alpha = new AlphaAnimation(0.5f, 0.2f);
        alpha.setRepeatCount(Animation.INFINITE);
        alpha.setRepeatMode(Animation.REVERSE);
        alpha.setDuration(1200);
        alpha.setFillAfter(true);
        return alpha;
    }
}