Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.animation.ObjectAnimator;

import android.view.View;
import android.view.animation.LinearInterpolator;

public class Main {
    public static ObjectAnimator createShowGradientAnimation(View view) {
        ObjectAnimator alphaAnimation = ObjectAnimator.ofFloat(view, View.ALPHA, 0, 1f);
        alphaAnimation.setDuration(400);
        alphaAnimation.setInterpolator(new LinearInterpolator());
        return alphaAnimation;
    }
}