package p000.p001.p002.p008.p009;

import android.animation.Animator;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.util.Property;
import android.view.View;
import android.view.ViewGroup;
import p000.p001.p002.p008.C0912;
import p000.p001.p021.p022.C1249;
import p037.p118.AbstractC2516;
import p037.p118.C2501;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: ނ.֏.֏.ހ.֏.ޝ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C0845 extends AbstractC2516 {
    public C0845() {
        mo4544(C0912.layoutContent);
    }

    @Override // p037.p118.AbstractC2516
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public Animator mo2129(ViewGroup viewGroup, View view, C2501 c2501, C2501 c25012) {
        if (viewGroup == null) {
            C6635.m9824("sceneRoot");
            throw null;
        }
        if (view != null) {
            return m2131(view, true);
        }
        C6635.m9824("view");
        throw null;
    }

    @Override // p037.p118.AbstractC2516
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public Animator mo2130(ViewGroup viewGroup, View view, C2501 c2501, C2501 c25012) {
        if (viewGroup == null) {
            C6635.m9824("sceneRoot");
            throw null;
        }
        if (view != null) {
            return m2131(view, false);
        }
        C6635.m9824("view");
        throw null;
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public final Animator m2131(View view, boolean z) {
        ObjectAnimator objectAnimatorOfFloat = ObjectAnimator.ofFloat(view, (Property<View, Float>) View.ALPHA, z ? 1.0f : 0.0f);
        float width = view.getWidth() * 0.2f;
        ObjectAnimator objectAnimatorOfFloat2 = ObjectAnimator.ofFloat(view, (Property<View, Float>) View.TRANSLATION_X, z ? 0.0f : width);
        if (z) {
            view.setAlpha(0.0f);
            view.setTranslationX(width);
        }
        AnimatorSet animatorSet = new AnimatorSet();
        animatorSet.playTogether(objectAnimatorOfFloat, objectAnimatorOfFloat2);
        animatorSet.setDuration(200L);
        animatorSet.addListener(new C1249(view));
        return animatorSet;
    }
}
