Example usage for android.view.animation RotateAnimation setStartTime

List of usage examples for android.view.animation RotateAnimation setStartTime

Introduction

In this page you can find the example usage for android.view.animation RotateAnimation setStartTime.

Prototype

public void setStartTime(long startTimeMillis) 

Source Link

Document

When this animation should start.

Usage

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;
}