FileDocCategorySizeDatePackage
IconPulser.javaAPI DocAndroid 5.1 API1800Thu Mar 12 22:22:42 GMT 2015com.android.systemui.volume

IconPulser

public class IconPulser extends Object

Fields Summary
private static final float
PULSE_SCALE
private final android.view.animation.Interpolator
mFastOutSlowInInterpolator
Constructors Summary
public IconPulser(android.content.Context context)


       
        mFastOutSlowInInterpolator = AnimationUtils.loadInterpolator(context,
                android.R.interpolator.fast_out_slow_in);
    
Methods Summary
public voidstart(android.view.View target)

        if (target == null || target.getScaleX() != 1) return;  // n/a, or already running
        target.animate().cancel();
        target.animate().scaleX(PULSE_SCALE).scaleY(PULSE_SCALE)
                .setInterpolator(mFastOutSlowInInterpolator)
                .setListener(new AnimatorListenerAdapter() {
                    @Override
                    public void onAnimationEnd(Animator animation) {
                        target.animate().scaleX(1).scaleY(1).setListener(null);
                    }
                });