package com.tencent.mm.plugin.luckymoney.f2f.ui;

import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.view.View;
import com.tencent.matrix.trace.core.AppMethodBeat;

class ShuffleView$13 implements AnimatorUpdateListener {
    final /* synthetic */ ShuffleView nWl;

    ShuffleView$13(ShuffleView shuffleView) {
        this.nWl = shuffleView;
    }

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        AppMethodBeat.i(42238);
        float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
        if (floatValue == 0.0f) {
            ShuffleView.b(this.nWl).clear();
            ShuffleView.c(this.nWl).clear();
            for (int i = 0; i < ShuffleView.d(this.nWl); i++) {
                ShuffleView.b(this.nWl).add(Float.valueOf(((View) ShuffleView.e(this.nWl).get(i)).getTranslationX()));
                ShuffleView.c(this.nWl).add(Float.valueOf(((View) ShuffleView.e(this.nWl).get(i)).getTranslationY()));
            }
            AppMethodBeat.o(42238);
            return;
        }
        ((View) ShuffleView.e(this.nWl).get(0)).setTranslationX((((Float) ShuffleView.b(this.nWl).get(0)).floatValue() * (1.0f - floatValue)) + (this.nWl.xM(0) * floatValue));
        ((View) ShuffleView.e(this.nWl).get(0)).setTranslationY((((Float) ShuffleView.c(this.nWl).get(0)).floatValue() * (1.0f - floatValue)) + (this.nWl.xN(0) * floatValue));
        int i2 = 1;
        while (true) {
            int i3 = i2;
            if (i3 < ShuffleView.d(this.nWl)) {
                ((View) ShuffleView.e(this.nWl).get(i3)).setTranslationX((((Float) ShuffleView.b(this.nWl).get(i3)).floatValue() * (1.0f - floatValue)) + (this.nWl.xM(i3) * floatValue));
                ((View) ShuffleView.e(this.nWl).get(i3)).setTranslationY((((Float) ShuffleView.c(this.nWl).get(i3)).floatValue() * (1.0f - floatValue)) + (this.nWl.xN(i3) * floatValue));
                i2 = i3 + 1;
            } else {
                AppMethodBeat.o(42238);
                return;
            }
        }
    }
}
