Java tutorial
//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); } }