package com.scb.phone.view.custom.item; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.Space; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.components.ItemCustom; import o.QR; import o.nMh; /* loaded from: classes5.dex */ public class ItemSimpleBottomCustom extends ItemCustom { @BindView TextView componentBottom; @BindView TextView componentBottomExtra; @BindView TextView componentBottomExtraPSL; @BindView TextView componentBottomLong; @BindView TextView componentBottomPSL; @BindView TextView componentLabel; @BindView View iconAndLabelLayout; @BindView ImageView iconImage; @BindView TextView iconLabel; @BindView Space spaceBottom; @BindView Space spaceTop; public ItemSimpleBottomCustom(Context context) { super(context); } public ItemSimpleBottomCustom(Context context, AttributeSet attributeSet) { super(context, attributeSet); } public ItemSimpleBottomCustom(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); } @Override // com.scb.phone.components.ItemCustom public final void a(Context context) { ((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131558973, (ViewGroup) this, true); ButterKnife.c(this); } @Override // com.scb.phone.components.ItemCustom public void setUpWithDisplay(QR qr) { if (qr.i == null || qr.i.isEmpty()) { this.componentLabel.setVisibility(8); } else { this.componentLabel.setVisibility(0); this.componentLabel.setText(qr.i); } if (qr.b != null) { if (qr.m) { this.componentBottomPSL.setVisibility(0); this.componentBottomPSL.setText(qr.b); this.componentBottomPSL.setPadding(0, 0, 0, 0); } else { this.componentBottom.setVisibility(0); this.componentBottom.setText(qr.b); } } if (qr.e != null) { if (qr.m) { this.componentBottomExtraPSL.setVisibility(0); this.componentBottomExtraPSL.setText(qr.e); } else { this.componentBottomExtra.setVisibility(0); this.componentBottomExtra.setText(qr.e); } } if (qr.a != null) { this.componentBottomLong.setVisibility(0); this.componentBottomLong.setText(qr.a); } if (qr.g > 0 && qr.f != null) { this.iconAndLabelLayout.setVisibility(0); this.iconImage.setImageResource(qr.g); this.iconLabel.setText(qr.f); } if (qr.j) { this.spaceBottom.setVisibility(8); } if (qr.h) { this.spaceTop.setVisibility(8); } if (qr.c != 0) { this.componentBottom.setTextColor(nMh.getColor(getContext(), qr.c)); } } }