what-the-bank/sources/com/scb/phone/view/custom/item/ItemSimpleRightFocusCustom....

59 lines
1.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.item;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.components.ItemCustom;
import o.C3172asW;
import o.QO;
import o.nMh;
/* loaded from: classes5.dex */
public class ItemSimpleRightFocusCustom extends ItemCustom<QO> {
@BindView
TextView componentExtra;
@BindView
TextView componentLabel;
public ItemSimpleRightFocusCustom(Context context) {
super(context);
}
public ItemSimpleRightFocusCustom(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public ItemSimpleRightFocusCustom(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
@Override // com.scb.phone.components.ItemCustom
public final void a(Context context) {
LayoutInflater.from(context).inflate(R.layout.2131558975, (ViewGroup) this, true);
ButterKnife.c(this);
}
@Override // com.scb.phone.components.ItemCustom
public void setUpWithDisplay(QO qo) {
if (qo.n) {
this.componentExtra.setTextColor(nMh.getColor(getContext(), R.color.f3092131099816));
}
if (qo.i > 0) {
this.componentLabel.setTextColor(qo.i);
}
this.componentLabel.setText(qo.h);
if (qo.k) {
this.componentExtra.setText(C3172asW.qI_(qo.f, 0));
} else {
this.componentExtra.setText(qo.f);
}
}
}