List of usage examples for android.view.animation RotateAnimation setStartTime
public void setStartTime(long startTimeMillis)
From source file:Main.java
public static RotateAnimation getDialogRotateAnimation2() { RotateAnimation mAnim = new RotateAnimation(0, 360, Animation.RESTART, 0.5f, Animation.RESTART, 0.5f); mAnim.setDuration(2000);/* w w w . j a v a2s .c o m*/ mAnim.setRepeatCount(Animation.INFINITE); mAnim.setRepeatMode(Animation.RESTART); mAnim.setStartTime(Animation.START_ON_FIRST_FRAME); return mAnim; }