package com.bytedance.sdk.component.adexpress.ajl;

import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.view.animation.CycleInterpolator;
import android.widget.TextView;

/* JADX INFO: loaded from: classes.dex */
public class wsy extends sds {
    private TextView fm;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private AnimatorSet f6459lb;
    private View ro;

    public wsy(Context context) {
        super(context);
        this.f6459lb = new AnimatorSet();
        ro(context);
    }

    private void ro(Context context) {
        View viewFm = com.bytedance.sdk.component.adexpress.lb.fm.fm(context);
        this.ro = viewFm;
        addView(viewFm);
        setClipChildren(false);
        this.fm = (TextView) findViewById(2097610748);
    }

    private void yz() {
        ObjectAnimator objectAnimatorOfFloat = ObjectAnimator.ofFloat(this.ro, "translationY", 0.0f, com.bytedance.sdk.component.adexpress.yz.wsy.fm(getContext(), -3.0f));
        objectAnimatorOfFloat.setInterpolator(new CycleInterpolator(1.0f));
        objectAnimatorOfFloat.setDuration(1000L);
        objectAnimatorOfFloat.setRepeatCount(-1);
        ObjectAnimator objectAnimatorOfFloat2 = ObjectAnimator.ofFloat(this.ro, "alpha", 1.0f, 0.8f);
        objectAnimatorOfFloat2.setDuration(1000L);
        objectAnimatorOfFloat2.setInterpolator(new CycleInterpolator(1.0f));
        objectAnimatorOfFloat2.setRepeatCount(-1);
        this.f6459lb.playTogether(objectAnimatorOfFloat, objectAnimatorOfFloat2);
        this.f6459lb.setDuration(1000L);
        this.f6459lb.start();
    }

    @Override // com.bytedance.sdk.component.adexpress.ajl.sds
    public void fm(Context context) {
    }

    public void setButtonText(String str) {
        if (this.fm == null || TextUtils.isEmpty(str)) {
            return;
        }
        this.fm.setText(str);
    }

    @Override // com.bytedance.sdk.component.adexpress.ajl.sds
    public void fm() {
        yz();
    }

    @Override // com.bytedance.sdk.component.adexpress.ajl.sds
    public void ro() {
        this.f6459lb.cancel();
    }
}
