package com.scb.phone.view.custom.ndid; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.LinearLayout; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import o.AQw; import o.gjJ; /* loaded from: classes5.dex */ public class CustomIdpTitleWithLabelView extends LinearLayout { private CharSequence a; private boolean b; private CharSequence e; @BindView TextView tvLabel; @BindView TextView tvValue; public CustomIdpTitleWithLabelView(Context context) { super(context); this.b = true; apW_(context, null); d(); } public CustomIdpTitleWithLabelView(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.b = true; apW_(context, attributeSet); d(); } private void apW_(Context context, AttributeSet attributeSet) { LayoutInflater.from(context).inflate(R.layout.2131559038, (ViewGroup) this, true); ButterKnife.c(this); if (attributeSet != null) { TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AQw.Sts.CustomIdpTitleWithLabelView, 0, 0); this.a = obtainStyledAttributes.getText(0); this.e = obtainStyledAttributes.getText(1); obtainStyledAttributes.recycle(); } } private void d() { this.tvLabel.setText(this.a); this.tvValue.setText(this.e); if (this.b) { setVisibility(gjJ.b(this.e) ? 8 : 0); } } public void setTextLabel(CharSequence charSequence) { this.a = charSequence; this.tvLabel.setText(charSequence); } public void setTextValue(CharSequence charSequence) { this.e = charSequence; this.tvValue.setText(charSequence); if (this.b) { setVisibility(gjJ.b(this.e) ? 8 : 0); } } }