86 lines
2.6 KiB
Java
86 lines
2.6 KiB
Java
|
package com.scb.phone.view.custom.item;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.graphics.PorterDuff;
|
||
|
import android.util.AttributeSet;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.ImageView;
|
||
|
import android.widget.TextView;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.components.ItemCustom;
|
||
|
import com.scb.phone.view.custom.common.MultiLineNoPaddingTextView;
|
||
|
import o.QN;
|
||
|
import o.nMh;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class ItemSuccessfulHeaderCustom extends ItemCustom<QN> {
|
||
|
|
||
|
@BindView
|
||
|
TextView componentExtra;
|
||
|
|
||
|
@BindView
|
||
|
ImageView componentIcon;
|
||
|
|
||
|
@BindView
|
||
|
TextView componentMoreExtra;
|
||
|
|
||
|
@BindView
|
||
|
TextView componentSubtitle;
|
||
|
|
||
|
@BindView
|
||
|
MultiLineNoPaddingTextView componentTitle;
|
||
|
protected Context d;
|
||
|
|
||
|
public ItemSuccessfulHeaderCustom(Context context) {
|
||
|
super(context);
|
||
|
}
|
||
|
|
||
|
public ItemSuccessfulHeaderCustom(Context context, AttributeSet attributeSet) {
|
||
|
super(context, attributeSet);
|
||
|
}
|
||
|
|
||
|
public ItemSuccessfulHeaderCustom(Context context, AttributeSet attributeSet, int i) {
|
||
|
super(context, attributeSet, i);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.components.ItemCustom
|
||
|
public final void a(Context context) {
|
||
|
LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService("layout_inflater");
|
||
|
if (layoutInflater != null) {
|
||
|
layoutInflater.inflate(R.layout.2131558978, (ViewGroup) this, true);
|
||
|
this.d = context;
|
||
|
ButterKnife.c(this);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Can't rename method to resolve collision */
|
||
|
@Override // com.scb.phone.components.ItemCustom
|
||
|
public void setUpWithDisplay(QN qn) {
|
||
|
this.componentTitle.setText(qn.g);
|
||
|
if (qn.h > 0) {
|
||
|
this.componentTitle.setTextColor(nMh.getColor(getContext(), qn.h));
|
||
|
}
|
||
|
if (qn.j != null) {
|
||
|
this.componentSubtitle.setVisibility(0);
|
||
|
this.componentSubtitle.setText(qn.j);
|
||
|
}
|
||
|
if (qn.c != null) {
|
||
|
this.componentExtra.setVisibility(0);
|
||
|
this.componentExtra.setText(qn.c);
|
||
|
} else {
|
||
|
this.componentExtra.setVisibility(8);
|
||
|
}
|
||
|
this.componentIcon.setImageDrawable(nMh.getDrawable(getContext(), qn.a));
|
||
|
if (qn.b > 0) {
|
||
|
this.componentIcon.setColorFilter(nMh.getColor(getContext(), qn.b), PorterDuff.Mode.SRC_ATOP);
|
||
|
}
|
||
|
if (qn.f != null) {
|
||
|
this.componentMoreExtra.setVisibility(0);
|
||
|
this.componentMoreExtra.setText(qn.f);
|
||
|
}
|
||
|
}
|
||
|
}
|