Example usage for android.view.animation ScaleAnimation startNow

List of usage examples for android.view.animation ScaleAnimation startNow

Introduction

In this page you can find the example usage for android.view.animation ScaleAnimation startNow.

Prototype

public void startNow() 

Source Link

Document

Convenience method to start the animation at the current time in milliseconds.

Usage

From source file:zjut.soft.finalwork.fragment.RightFragment.java

public void plannerScaleAction() {
    ScaleAnimation scaleanim1 = new ScaleAnimation(0.0f, 1.0f, 0.0f, 1.0f, Animation.RELATIVE_TO_SELF, 0.5f,
            Animation.RELATIVE_TO_SELF, 0.5f);
    scaleanim1.setDuration(1500);/*from   w w w. jav a2  s  .  c  o m*/
    scaleanim1.setFillAfter(true);
    scaleanim1.setRepeatCount(Animation.INFINITE);
    scaleanim1.setRepeatMode(Animation.REVERSE);
    scaleanim1.setInterpolator(new AccelerateDecelerateInterpolator());

    plannerIV.setAnimation(scaleanim1);
    scaleanim1.startNow();
}