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$11 implements AnimatorUpdateListener {
    final /* synthetic */ ShuffleView nWl;

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

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        int i = 0;
        AppMethodBeat.i(42236);
        float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
        if (floatValue == 0.0f) {
            ShuffleView.b(this.nWl).clear();
            ShuffleView.c(this.nWl).clear();
            while (i < ShuffleView.d(this.nWl)) {
                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()));
                i++;
            }
            AppMethodBeat.o(42236);
            return;
        }
        while (true) {
            int i2 = i;
            if (i2 < ShuffleView.d(this.nWl)) {
                ((View) ShuffleView.e(this.nWl).get(i2)).setTranslationX((((Float) ShuffleView.b(this.nWl).get(i2)).floatValue() * (1.0f - floatValue)) + (this.nWl.xM(i2) * floatValue));
                ((View) ShuffleView.e(this.nWl).get(i2)).setTranslationY((((Float) ShuffleView.c(this.nWl).get(i2)).floatValue() * (1.0f - floatValue)) + (this.nWl.xN(i2) * floatValue));
                i = i2 + 1;
            } else {
                AppMethodBeat.o(42236);
                return;
            }
        }
    }
}
