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.view.animation.RotateAnimation;
import android.widget.RelativeLayout;

public class Main {
    public static void rotateOutAnimation(RelativeLayout level) {
        rotateOutAnimation(level, 0);
    }

    public static void rotateOutAnimation(RelativeLayout level, long i) {
        RotateAnimation animation = new RotateAnimation(0, 180, level.getWidth() / 2, level.getHeight());
        animation.setFillAfter(true);
        animation.setDuration(500);
        animation.setStartOffset(i);
        level.startAnimation(animation);
    }
}