46 lines
1.3 KiB
Java
46 lines
1.3 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.TextView;
|
|
import androidx.constraintlayout.widget.ConstraintLayout;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.scb.phone.R;
|
|
import o.C15715hv;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class CustomAmountRow extends ConstraintLayout {
|
|
|
|
@BindView
|
|
TextView amount;
|
|
|
|
@BindView
|
|
TextView title;
|
|
|
|
public CustomAmountRow(Context context) {
|
|
this(context, null, 0);
|
|
}
|
|
|
|
public CustomAmountRow(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, 0);
|
|
}
|
|
|
|
public CustomAmountRow(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
LayoutInflater.from(context).inflate(R.layout.2131558920, (ViewGroup) this, true);
|
|
ButterKnife.c(this);
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C15715hv.jbe.CustomAmountRow);
|
|
String string = obtainStyledAttributes.getString(0);
|
|
obtainStyledAttributes.recycle();
|
|
this.title.setText(string);
|
|
}
|
|
|
|
public void setAmount(String str) {
|
|
this.amount.setText(str);
|
|
}
|
|
}
|