137 lines
4.1 KiB
Java
137 lines
4.1 KiB
Java
package com.scb.phone.view.custom.transferandpay;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.FrameLayout;
|
|
import android.widget.ImageView;
|
|
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.common.DefaultButton;
|
|
import o.C12891fKc;
|
|
import o.nMh;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class CustomTransferAndPayTarget extends CustomTransferAndPayInfo {
|
|
|
|
@BindView
|
|
DefaultButton mAddFavouriteButton;
|
|
|
|
@BindView
|
|
View mDividerSpace;
|
|
|
|
@BindView
|
|
View mDividerView;
|
|
|
|
@BindView
|
|
public ImageView mFavouriteIcon;
|
|
|
|
@BindView
|
|
public TextView mFavouriteName;
|
|
|
|
@BindView
|
|
TextView mReferenceNumberTextView;
|
|
|
|
@BindView
|
|
ImageTextView mTargetNameTextView;
|
|
|
|
@BindView
|
|
TextView mTargetTextView;
|
|
|
|
@BindView
|
|
TextView refNo1TextView;
|
|
|
|
@BindView
|
|
TextView refNo2TextView;
|
|
|
|
@BindView
|
|
TextView refNo3TextView;
|
|
|
|
@BindView
|
|
FrameLayout targetInfoLayout;
|
|
|
|
public CustomTransferAndPayTarget(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559383, (ViewGroup) this, true);
|
|
ButterKnife.c(this);
|
|
}
|
|
|
|
public void setAvatar(String str) {
|
|
C12891fKc.c(getContext(), R.drawable.bankicon_place_holder, this.mTargetNameTextView, str, getResources().getDimensionPixelOffset(R.dimen.f27732131166539), nMh.getColor(getContext(), R.color.f3412131099849));
|
|
}
|
|
|
|
public void setBillerAvatar(String str) {
|
|
C12891fKc.c(getContext(), R.drawable.biller_place_holder, this.mTargetNameTextView, str, getResources().getDimensionPixelOffset(R.dimen.f27732131166539), nMh.getColor(getContext(), R.color.f3412131099849));
|
|
}
|
|
|
|
public void setShopAvatar(String str) {
|
|
C12891fKc.c(getContext(), R.drawable.shop_large, this.mTargetNameTextView, str, getResources().getDimensionPixelOffset(R.dimen.f27732131166539), nMh.getColor(getContext(), R.color.f3412131099849));
|
|
}
|
|
|
|
public void setAvatar(String str, int i) {
|
|
C12891fKc.c(getContext(), i, this.mTargetNameTextView, str, getResources().getDimensionPixelOffset(R.dimen.f27732131166539), nMh.getColor(getContext(), R.color.f3412131099849));
|
|
}
|
|
|
|
public void setText(String str) {
|
|
this.mTargetTextView.setText(str);
|
|
}
|
|
|
|
public void setTargetName(String str) {
|
|
this.mTargetNameTextView.setText(str);
|
|
}
|
|
|
|
public void setTargetNameGrayColor(Context context) {
|
|
this.mTargetNameTextView.setTextColor(nMh.getColor(context, R.color.f3092131099816));
|
|
}
|
|
|
|
public void setReferenceNumbers(String str) {
|
|
this.mReferenceNumberTextView.setText(str);
|
|
}
|
|
|
|
public void setReferenceNumbersVisible(boolean z) {
|
|
this.mReferenceNumberTextView.setVisibility(z ? 0 : 8);
|
|
}
|
|
|
|
public void setFavoriteName(String str) {
|
|
this.mFavouriteIcon.setVisibility(0);
|
|
this.mFavouriteName.setVisibility(0);
|
|
this.mFavouriteName.setText(str);
|
|
}
|
|
|
|
public void setAddFavoriteButtonVisible(boolean z) {
|
|
this.mAddFavouriteButton.setVisibility(z ? 0 : 8);
|
|
}
|
|
|
|
public void setAddFavoriteButtonOnClickListener(View.OnClickListener onClickListener) {
|
|
this.mAddFavouriteButton.setOnClickListener(onClickListener);
|
|
}
|
|
|
|
public void setReferenceNo1(String str) {
|
|
this.refNo1TextView.setText(str);
|
|
this.refNo1TextView.setVisibility(0);
|
|
}
|
|
|
|
public void setReferenceNo2(String str) {
|
|
this.refNo2TextView.setText(str);
|
|
this.refNo2TextView.setVisibility(0);
|
|
}
|
|
|
|
public void setReferenceNo3(String str) {
|
|
this.refNo3TextView.setText(str);
|
|
this.refNo3TextView.setVisibility(0);
|
|
}
|
|
|
|
public void setDividerVisibility(boolean z) {
|
|
this.mDividerView.setVisibility(z ? 0 : 8);
|
|
}
|
|
|
|
public void setFullDivider(boolean z) {
|
|
this.mDividerSpace.setVisibility(z ? 8 : 0);
|
|
}
|
|
}
|