Android examples for Animation:Rotate Animation
rotate Out Animation
//package com.java2s; import android.view.animation.RotateAnimation; import android.widget.RelativeLayout; public class Main { public static void rotateOutAnimation(RelativeLayout level) { rotateOutAnimation(level, 0);// w ww .j a v a 2s .c om } 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); } }