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

51 lines
1.5 KiB
Java

package com.scb.phone.view.custom.transferandpay;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import o.C1232Yo;
import o.nMh;
/* loaded from: classes5.dex */
public class CustomAmountInfoItem extends RelativeLayout {
@BindView
TextView asideValue;
private Context b;
@BindView
TextView title;
@BindView
TextView value;
public CustomAmountInfoItem(Context context, C1232Yo c1232Yo, boolean z, boolean z2) {
super(context);
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131558919, (ViewGroup) this, true);
ButterKnife.c(this);
this.b = context;
if (z2) {
this.title.setTextColor(nMh.getColor(context, R.color.f2272131099733));
this.asideValue.setTextColor(nMh.getColor(this.b, R.color.f2272131099733));
this.asideValue.setTextSize(24.0f);
}
this.title.setText(c1232Yo.d);
if (z) {
String str = c1232Yo.e;
TextView textView = this.asideValue;
textView.setText(str);
textView.setVisibility(0);
return;
}
String str2 = c1232Yo.e;
TextView textView2 = this.value;
textView2.setText(str2);
textView2.setVisibility(0);
}
}