Example usage for android.view.animation Transformation Transformation

List of usage examples for android.view.animation Transformation Transformation

Introduction

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

Prototype

public Transformation() 

Source Link

Document

Creates a new transformation with alpha = 1 and the identity matrix.

Usage

From source file:com.actionbarsherlock.internal.widget.IcsProgressBar.java

/**
 * <p>Start the indeterminate progress animation.</p>
 *///from www. ja  va  2 s. c  o  m
void startAnimation() {
    if (getVisibility() != VISIBLE) {
        return;
    }

    if (mIndeterminateDrawable instanceof Animatable) {
        mShouldStartAnimationDrawable = true;
        mAnimation = null;
    } else {
        if (mInterpolator == null) {
            mInterpolator = new LinearInterpolator();
        }

        mTransformation = new Transformation();
        mAnimation = new AlphaAnimation(0.0f, 1.0f);
        mAnimation.setRepeatMode(mBehavior);
        mAnimation.setRepeatCount(Animation.INFINITE);
        mAnimation.setDuration(mDuration);
        mAnimation.setInterpolator(mInterpolator);
        mAnimation.setStartTime(Animation.START_ON_FIRST_FRAME);
    }
    postInvalidate();
}