129 lines
3.8 KiB
Java
129 lines
3.8 KiB
Java
|
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.FrameLayout;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.components.ItemCustom;
|
||
|
import com.scb.phone.view.adapter.tierpricing.TierPricingInstallmentAdapter;
|
||
|
import java.util.List;
|
||
|
import o.C14957gcv;
|
||
|
import o.QJ;
|
||
|
import o.WY;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class ItemComplexInterestCustom extends ItemCustom<QJ> {
|
||
|
|
||
|
@BindView
|
||
|
public FrameLayout divider;
|
||
|
|
||
|
@BindView
|
||
|
public RecyclerView installments;
|
||
|
|
||
|
@BindView
|
||
|
public TextView promo;
|
||
|
|
||
|
@BindView
|
||
|
public TextView remark;
|
||
|
|
||
|
@BindView
|
||
|
public TextView title;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public ItemComplexInterestCustom(Context context) {
|
||
|
super(context);
|
||
|
C14957gcv.e(context, "");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public ItemComplexInterestCustom(Context context, AttributeSet attributeSet) {
|
||
|
super(context, attributeSet);
|
||
|
C14957gcv.e(context, "");
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public ItemComplexInterestCustom(Context context, AttributeSet attributeSet, int i) {
|
||
|
super(context, attributeSet, i);
|
||
|
C14957gcv.e(context, "");
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.components.ItemCustom
|
||
|
public final void a(Context context) {
|
||
|
LayoutInflater.from(context).inflate(R.layout.2131559988, (ViewGroup) this, true);
|
||
|
ButterKnife.c(this);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.components.ItemCustom
|
||
|
public final void setUpWithDisplay(QJ qj) {
|
||
|
C14957gcv.e(qj, "");
|
||
|
TextView textView = this.title;
|
||
|
RecyclerView recyclerView = null;
|
||
|
if (textView == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView = null;
|
||
|
}
|
||
|
textView.setText(qj.a);
|
||
|
TextView textView2 = this.promo;
|
||
|
if (textView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView2 = null;
|
||
|
}
|
||
|
textView2.setVisibility(8);
|
||
|
TextView textView3 = this.remark;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
textView3.setVisibility(8);
|
||
|
RecyclerView recyclerView2 = this.installments;
|
||
|
if (recyclerView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
recyclerView2 = null;
|
||
|
}
|
||
|
getContext();
|
||
|
recyclerView2.setLayoutManager(new LinearLayoutManager());
|
||
|
List<WY> list = qj.b;
|
||
|
if (list != null) {
|
||
|
RecyclerView recyclerView3 = this.installments;
|
||
|
if (recyclerView3 != null) {
|
||
|
recyclerView = recyclerView3;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
recyclerView.setAdapter(new TierPricingInstallmentAdapter(list, Integer.valueOf(qj.c)));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void setTitle(TextView textView) {
|
||
|
C14957gcv.e(textView, "");
|
||
|
this.title = textView;
|
||
|
}
|
||
|
|
||
|
public final void setRemark(TextView textView) {
|
||
|
C14957gcv.e(textView, "");
|
||
|
this.remark = textView;
|
||
|
}
|
||
|
|
||
|
public final void setPromo(TextView textView) {
|
||
|
C14957gcv.e(textView, "");
|
||
|
this.promo = textView;
|
||
|
}
|
||
|
|
||
|
public final void setInstallments(RecyclerView recyclerView) {
|
||
|
C14957gcv.e(recyclerView, "");
|
||
|
this.installments = recyclerView;
|
||
|
}
|
||
|
|
||
|
public final void setDivider(FrameLayout frameLayout) {
|
||
|
C14957gcv.e(frameLayout, "");
|
||
|
this.divider = frameLayout;
|
||
|
}
|
||
|
}
|