69 lines
1.9 KiB
Java
69 lines
1.9 KiB
Java
package com.scb.phone.view.custom.closeaccount;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.TextView;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.custom.common.CustomAmountRow;
|
|
import o.C0501Ia;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class AccountAmountCustomComponent extends ConstraintLayout {
|
|
|
|
@BindView
|
|
CustomAmountRow amount;
|
|
|
|
@BindView
|
|
CustomAmountRow closingFee;
|
|
|
|
@BindView
|
|
CustomAmountRow fee;
|
|
|
|
@BindView
|
|
CustomAmountRow interest;
|
|
|
|
@BindView
|
|
TextView netAmount;
|
|
|
|
@BindView
|
|
public TextView netAmountButton;
|
|
|
|
@BindView
|
|
CustomAmountRow tax;
|
|
|
|
public AccountAmountCustomComponent(Context context) {
|
|
this(context, null, 0);
|
|
}
|
|
|
|
public AccountAmountCustomComponent(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, 0);
|
|
}
|
|
|
|
public AccountAmountCustomComponent(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
LayoutInflater.from(context).inflate(R.layout.2131558963, (ViewGroup) this, true);
|
|
ButterKnife.c(this);
|
|
}
|
|
|
|
public void setButtonListener(View.OnClickListener onClickListener) {
|
|
this.netAmountButton.setVisibility(0);
|
|
this.netAmountButton.setClickable(true);
|
|
this.netAmountButton.setOnClickListener(onClickListener);
|
|
}
|
|
|
|
public void setDisplayData(C0501Ia c0501Ia) {
|
|
this.amount.setAmount(c0501Ia.d);
|
|
this.interest.setAmount(c0501Ia.c);
|
|
this.tax.setAmount(c0501Ia.i);
|
|
this.closingFee.setAmount(c0501Ia.e);
|
|
this.fee.setAmount(c0501Ia.b);
|
|
this.netAmount.setText(c0501Ia.a);
|
|
}
|
|
}
|