Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.animation.Animator;
import android.annotation.TargetApi;
import android.view.View;
import android.view.ViewAnimationUtils;
import android.view.animation.AccelerateInterpolator;

public class Main {
    private static final AccelerateInterpolator mAccelerateInterpolator = new AccelerateInterpolator();

    @TargetApi(21)
    public static Animator circleReveal(View v, int centerX, int centerY, float startRadius, float endRadius,
            int duration) {
        Animator anim = ViewAnimationUtils.createCircularReveal(v, centerX, centerY, startRadius, endRadius);
        anim.setDuration(duration);
        anim.setInterpolator(mAccelerateInterpolator);
        anim.start();
        return anim;
    }
}