Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.view.animation.RotateAnimation;
import android.widget.RelativeLayout;

public class Main {
    public static void viewShow(RelativeLayout view) {

        RotateAnimation animation = new RotateAnimation(180, 360, view.getWidth() / 2, view.getHeight());
        animation.setDuration(300);
        animation.setFillAfter(true);
        view.startAnimation(animation);

    }
}