73 lines
2.2 KiB
Java
73 lines
2.2 KiB
Java
package com.scb.phone.view.custom.common;
|
|
|
|
import android.content.Context;
|
|
import android.content.res.TypedArray;
|
|
import android.util.AttributeSet;
|
|
import android.view.LayoutInflater;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ImageView;
|
|
import android.widget.TextView;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import com.squareup.picasso.Picasso;
|
|
import java.io.IOException;
|
|
import o.C12914fKz;
|
|
import o.C13020fOa;
|
|
import o.C15715hv;
|
|
import o.IX;
|
|
import o.fLG;
|
|
import o.guQ;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class MultilineDataComponent extends ConstraintLayout {
|
|
|
|
@BindView
|
|
TextView firstLine;
|
|
|
|
@BindView
|
|
ImageView icon;
|
|
|
|
@BindView
|
|
TextView secondLine;
|
|
|
|
@BindView
|
|
TextView title;
|
|
|
|
public MultilineDataComponent(Context context) {
|
|
this(context, null, 0);
|
|
}
|
|
|
|
public MultilineDataComponent(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, 0);
|
|
}
|
|
|
|
public MultilineDataComponent(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
LayoutInflater.from(context).inflate(R.layout.2131558969, (ViewGroup) this, true);
|
|
ButterKnife.c(this);
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C15715hv.jbe.MultilineDataComponent);
|
|
String string = obtainStyledAttributes.getString(0);
|
|
obtainStyledAttributes.recycle();
|
|
this.title.setText(string);
|
|
}
|
|
|
|
public void setDisplay(IX ix) {
|
|
this.firstLine.setText(ix.e);
|
|
this.secondLine.setText(ix.c);
|
|
C13020fOa d = Picasso.d().e(ix.a).d();
|
|
d.a.c(new fLG(getResources().getDimensionPixelSize(R.dimen.f27732131166539)));
|
|
if (!((Boolean) C12914fKz.e(new Object[0], -1840827221, 1840827223, (int) System.currentTimeMillis())).booleanValue()) {
|
|
try {
|
|
this.icon.setImageBitmap(d.aBt_());
|
|
return;
|
|
} catch (IOException e) {
|
|
guQ.c(e, "setCircularDrawableToImageView", new Object[0]);
|
|
return;
|
|
}
|
|
}
|
|
d.aBu_(this.icon, null);
|
|
}
|
|
}
|