what-the-bank/sources/com/scb/phone/view/custom/item/ItemCardCustom.java

57 lines
1.6 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.item;
import android.content.Context;
import android.text.TextUtils;
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 o.C12891fKc;
import o.QE;
import o.nMh;
/* loaded from: classes5.dex */
public class ItemCardCustom extends ItemCustom<QE> {
@BindView
ImageView cardImage;
@BindView
TextView cardNo;
public ItemCardCustom(Context context) {
super(context);
}
public ItemCardCustom(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public ItemCardCustom(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.2131558965, (ViewGroup) this, true);
ButterKnife.c(this);
}
@Override // com.scb.phone.components.ItemCustom
public void setUpWithDisplay(QE qe) {
if (TextUtils.isEmpty(qe.a)) {
this.cardNo.setVisibility(8);
} else {
this.cardNo.setText(qe.a);
}
getContext();
C12891fKc.azn_(nMh.getDrawable(getContext(), R.drawable.default_card), this.cardImage, qe.c);
this.cardImage.setContentDescription(qe.b);
}
}