66 lines
1.8 KiB
Java
66 lines
1.8 KiB
Java
package com.scb.phone.view.custom.item;
|
|
|
|
import android.content.Context;
|
|
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.QM;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class ItemPhotoDetailCustom extends ItemCustom<QM> {
|
|
|
|
@BindView
|
|
TextView componentExtra;
|
|
|
|
@BindView
|
|
TextView componentExtraDetails;
|
|
|
|
@BindView
|
|
TextView componentLabel;
|
|
|
|
@BindView
|
|
ImageView photo;
|
|
|
|
public ItemPhotoDetailCustom(Context context) {
|
|
super(context);
|
|
}
|
|
|
|
public ItemPhotoDetailCustom(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
public ItemPhotoDetailCustom(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.2131558970, (ViewGroup) this, true);
|
|
ButterKnife.c(this);
|
|
}
|
|
|
|
@Override // com.scb.phone.components.ItemCustom
|
|
public void setUpWithDisplay(QM qm) {
|
|
this.componentLabel.setText(qm.h);
|
|
this.componentExtra.setText(qm.f);
|
|
if (qm.c != null) {
|
|
this.componentExtraDetails.setText(qm.c);
|
|
this.componentExtraDetails.setVisibility(0);
|
|
}
|
|
String str = qm.a;
|
|
if (str.isEmpty()) {
|
|
return;
|
|
}
|
|
getContext();
|
|
C12891fKc.azo_(this.photo, str);
|
|
this.photo.setVisibility(0);
|
|
}
|
|
}
|