package com.bytedance.sdk.component.adexpress.dynamic.lb;

import android.content.Context;
import android.view.View;
import android.widget.FrameLayout;
import com.bytedance.sdk.component.adexpress.ajl.gof;
import com.bytedance.sdk.component.adexpress.ajl.sds;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes.dex */
public class ajl extends qhl<com.bytedance.sdk.component.adexpress.ajl.ajl> {
    public ajl(Context context, com.bytedance.sdk.component.adexpress.dynamic.dynamicview.jnr jnrVar, com.bytedance.sdk.component.adexpress.dynamic.yz.wsy wsyVar, int i10, int i11, int i12, JSONObject jSONObject) {
        super(context, jnrVar, wsyVar);
        this.ro = context;
        this.yz = wsyVar;
        this.f6503lb = jnrVar;
        fm(i10, i11, i12, jSONObject, wsyVar);
    }

    private void fm(int i10, int i11, int i12, JSONObject jSONObject, com.bytedance.sdk.component.adexpress.dynamic.yz.wsy wsyVar) {
        this.fm = new com.bytedance.sdk.component.adexpress.ajl.ajl(this.ro, i10, i11, i12, jSONObject);
        FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-1, (int) com.bytedance.sdk.component.adexpress.yz.wsy.fm(this.ro, 300.0f));
        layoutParams.gravity = 81;
        layoutParams.bottomMargin = (int) com.bytedance.sdk.component.adexpress.yz.wsy.fm(this.ro, wsyVar.ib() > 0 ? wsyVar.ib() : com.bytedance.sdk.component.adexpress.yz.ro() ? 0 : 120);
        this.fm.setLayoutParams(layoutParams);
        this.fm.setClipChildren(false);
        this.fm.setSlideText(this.yz.lmk());
        sds sdsVar = this.fm;
        if (sdsVar instanceof com.bytedance.sdk.component.adexpress.ajl.ajl) {
            ((com.bytedance.sdk.component.adexpress.ajl.ajl) sdsVar).setShakeText(this.yz.vvj());
            final com.bytedance.sdk.component.adexpress.ajl.gqi shakeView = ((com.bytedance.sdk.component.adexpress.ajl.ajl) this.fm).getShakeView();
            if (shakeView != null) {
                shakeView.setOnShakeViewListener(new gof.fm() { // from class: com.bytedance.sdk.component.adexpress.dynamic.lb.ajl.1
                });
                shakeView.setOnClickListener((View.OnClickListener) this.f6503lb.getDynamicClickListener());
            }
        }
    }

    @Override // com.bytedance.sdk.component.adexpress.dynamic.lb.qhl
    public void yz() {
    }
}
