Android examples for Animation:Rotate Animation
rotate 45 Degree Animation
//package com.java2s; import android.view.animation.Animation; import android.view.animation.LinearInterpolator; import android.view.animation.RotateAnimation; public class Main { static public Animation rotate_45() { RotateAnimation rotate_45 = new RotateAnimation(-225, 0, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); rotate_45.setDuration(400);/*from w ww . j av a 2 s . c om*/ rotate_45.setInterpolator(new LinearInterpolator()); return rotate_45; } }