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.view.View;

import android.view.animation.DecelerateInterpolator;

public class Main {
    public static void rotation(View view, float rotation, int duration, int startDelay,
            Animator.AnimatorListener listener) {
        view.animate().rotation(rotation).setDuration(duration).setStartDelay(startDelay)
                .setInterpolator(new DecelerateInterpolator()).setListener(listener);
    }
}