package com.scb.phone.view.custom.bulktransfer; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.TextView; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import com.scb.phone.view.custom.ImageTextView; import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayInfo; import o.C12891fKc; import o.C15715hv; import o.nMh; /* loaded from: classes5.dex */ public class CustomBulkTransferScheduleItem extends CustomTransferAndPayInfo { private boolean b; @BindView View divider; @BindView FrameLayout fmSourceInfo; @BindView ImageTextView mSourceNameTextView; @BindView TextView mSourceTextView; public CustomBulkTransferScheduleItem(Context context, AttributeSet attributeSet) { super(context, attributeSet); TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C15715hv.jbe.CustomTransferAndPaySource, 0, 0); this.b = obtainStyledAttributes.getBoolean(0, true); obtainStyledAttributes.recycle(); ((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559381, (ViewGroup) this, true); ButterKnife.c(this); this.divider.setVisibility(this.b ? 0 : 8); } public void setAvatar(String str) { C12891fKc.c(getContext(), R.drawable.bankicon_place_holder, this.mSourceNameTextView, str, getResources().getDimensionPixelOffset(R.dimen.f27732131166539), nMh.getColor(getContext(), R.color.f3412131099849)); } public void setText(String str) { this.mSourceTextView.setText(str); } public void setSourceName(String str) { this.mSourceNameTextView.setText(str); } }