what-the-bank/sources/com/scb/phone/view/custom/transferandpay/CustomTransferAndPayBiller....

112 lines
3.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.transferandpay;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayBiller;
import o.C12891fKc;
import o.InterfaceC12846fIu;
import o.nMh;
/* loaded from: classes5.dex */
public class CustomTransferAndPayBiller extends LinearLayout {
private Context a;
private InterfaceC12846fIu d;
private Drawable e;
@BindView
public RelativeLayout mBackButton;
@BindView
ImageView mBackButtonImage;
@BindView
TextView mDescription2TextView;
@BindView
TextView mDescription3TextView;
@BindView
public TextView mDescriptionTextView;
@BindView
ImageView mIconImageView;
@BindView
TextView mTitleTextView;
public CustomTransferAndPayBiller(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.a = context;
this.e = nMh.getDrawable(context, R.drawable.biller_place_holder);
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559378, (ViewGroup) this, true);
setOrientation(0);
ButterKnife.c(this);
this.mBackButton.setOnClickListener(new View.OnClickListener(this) { // from class: o.eEk
private CustomTransferAndPayBiller b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
CustomTransferAndPayBiller.d(this.b);
}
{
this.b = this;
}
});
}
public void setTitle(String str) {
this.mTitleTextView.setText(str);
}
public void setDescription(String str) {
this.mDescriptionTextView.setVisibility(0);
this.mDescriptionTextView.setText(str);
}
public void setDescription2(String str) {
this.mDescription2TextView.setVisibility(0);
this.mDescription2TextView.setText(str);
}
public void setDescription3(String str) {
this.mDescription3TextView.setVisibility(0);
this.mDescription3TextView.setText(str);
}
public void setAvatar(String str) {
Context context = this.a;
C12891fKc.azg_(context, this.e, this.mIconImageView, str, context.getResources().getDimensionPixelOffset(R.dimen.f15212131165285), nMh.getColor(this.a, R.color.f3092131099816));
}
public void setAvatar(int i) {
C12891fKc.azh_(this.e, this.mIconImageView, i, this.a.getResources().getDimensionPixelOffset(R.dimen.f15212131165285));
}
public void setEditButtonImage() {
this.mBackButtonImage.setImageDrawable(nMh.getDrawable(this.a, R.drawable.ic_gift_recipient_edit));
}
public static /* synthetic */ void d(CustomTransferAndPayBiller customTransferAndPayBiller) {
InterfaceC12846fIu interfaceC12846fIu = customTransferAndPayBiller.d;
if (interfaceC12846fIu != null) {
interfaceC12846fIu.aT_();
}
}
public void setOnCustomTransferAndPayItemListener(InterfaceC12846fIu interfaceC12846fIu) {
this.d = interfaceC12846fIu;
}
}