package com.bytedance.sdk.openadsdk.common;

import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.LinearLayout;
import com.bytedance.sdk.openadsdk.utils.zan;

/* JADX INFO: loaded from: classes2.dex */
public class ku {
    protected View fm = jnr();
    private com.bytedance.sdk.openadsdk.core.ajl.wu jnr;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private com.bytedance.sdk.openadsdk.core.widget.wu f6851lb;
    protected Context ro;
    private com.bytedance.sdk.openadsdk.core.widget.qhl yz;

    public ku(Context context) {
        this.ro = context;
    }

    private View jnr() {
        com.bytedance.sdk.openadsdk.core.ajl.jnr jnrVar = new com.bytedance.sdk.openadsdk.core.ajl.jnr(this.ro);
        jnrVar.setGravity(1);
        jnrVar.setOrientation(1);
        com.bytedance.sdk.openadsdk.core.widget.qhl qhlVar = new com.bytedance.sdk.openadsdk.core.widget.qhl(this.ro);
        this.yz = qhlVar;
        qhlVar.setId(520093745);
        int iRo = zan.ro(this.ro, 64.0f);
        jnrVar.addView(this.yz, new LinearLayout.LayoutParams(iRo, iRo));
        com.bytedance.sdk.openadsdk.core.ajl.wu wuVar = new com.bytedance.sdk.openadsdk.core.ajl.wu(this.ro);
        this.jnr = wuVar;
        wuVar.setId(520093746);
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(zan.ro(this.ro, 219.0f), -2);
        layoutParams.topMargin = zan.ro(this.ro, 16.0f);
        this.jnr.setLayoutParams(layoutParams);
        this.jnr.setEllipsize(TextUtils.TruncateAt.END);
        this.jnr.setGravity(17);
        this.jnr.setMaxWidth(zan.ro(this.ro, 150.0f));
        this.jnr.setMaxLines(2);
        this.jnr.setTextColor(-1);
        this.jnr.setTextSize(1, 16.0f);
        jnrVar.addView(this.jnr);
        this.f6851lb = new com.bytedance.sdk.openadsdk.core.widget.wu(this.ro);
        LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(zan.ro(this.ro, 219.0f), zan.ro(this.ro, 6.0f));
        layoutParams2.topMargin = zan.ro(this.ro, 32.0f);
        jnrVar.addView(this.f6851lb, layoutParams2);
        return jnrVar;
    }

    public View fm() {
        return this.fm;
    }

    public com.bytedance.sdk.openadsdk.core.ajl.wu lb() {
        return this.jnr;
    }

    public com.bytedance.sdk.openadsdk.core.widget.qhl ro() {
        return this.yz;
    }

    public void yz() {
        this.fm = null;
        this.ro = null;
    }

    public void fm(int i10) {
        this.f6851lb.setProgress(i10);
    }
}
