what-the-bank/sources/com/scb/phone/view/adapter/creditcard/CreditCardDetailBilledAdapt...

125 lines
4.3 KiB
Java

package com.scb.phone.view.adapter.creditcard;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;
import com.scb.phone.R;
import com.scb.phone.view.adapter.creditcard.CreditCardDetailBilledAdapter;
import java.util.List;
import o.C0530Iv;
import o.InterfaceC12842fIq;
import o.pyT;
/* loaded from: classes5.dex */
public final class CreditCardDetailBilledAdapter extends RecyclerView.Sts<BilledHolder> {
public List<C0530Iv> a;
private InterfaceC12842fIq e;
/* loaded from: classes5.dex */
public class BilledHolder_ViewBinding implements Unbinder {
private BilledHolder b;
public BilledHolder_ViewBinding(BilledHolder billedHolder, View view) {
this.b = billedHolder;
billedHolder.container = (RelativeLayout) pyT.e(view, R.id.container_biller, "field 'container'", RelativeLayout.class);
billedHolder.month = (TextView) pyT.e(view, R.id.billed_date_text_view, "field 'month'", TextView.class);
billedHolder.value = (TextView) pyT.e(view, R.id.billed_value_text_view, "field 'value'", TextView.class);
billedHolder.icon = (ImageView) pyT.e(view, R.id.billed_arrow_image_view, "field 'icon'", ImageView.class);
billedHolder.footerDividerView = pyT.a(view, R.id.footer_divider_view, "field 'footerDividerView'");
}
@Override // butterknife.Unbinder
public final void a() {
BilledHolder billedHolder = this.b;
if (billedHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.b = null;
billedHolder.container = null;
billedHolder.month = null;
billedHolder.value = null;
billedHolder.icon = null;
billedHolder.footerDividerView = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(BilledHolder billedHolder, final int i) {
BilledHolder billedHolder2 = billedHolder;
billedHolder2.month.setText(this.a.get(i).d);
billedHolder2.value.setText(this.a.get(i).a);
billedHolder2.container.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.esr
private int d;
private CreditCardDetailBilledAdapter e;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
CreditCardDetailBilledAdapter.e(this.e, this.d);
}
{
this.e = this;
this.d = i;
}
});
if (i == getItemCount() - 1) {
billedHolder2.footerDividerView.setVisibility(0);
} else {
billedHolder2.footerDividerView.setVisibility(8);
}
}
public CreditCardDetailBilledAdapter(List<C0530Iv> list, InterfaceC12842fIq interfaceC12842fIq) {
this.a = list;
this.e = interfaceC12842fIq;
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.a.size();
}
/* loaded from: classes5.dex */
static class BilledHolder extends RecyclerView.zJl {
@BindView
RelativeLayout container;
@BindView
View footerDividerView;
@BindView
ImageView icon;
@BindView
TextView month;
@BindView
TextView value;
BilledHolder(View view) {
super(view);
ButterKnife.c(this, view);
}
}
public static /* synthetic */ void e(CreditCardDetailBilledAdapter creditCardDetailBilledAdapter, int i) {
InterfaceC12842fIq interfaceC12842fIq = creditCardDetailBilledAdapter.e;
if (interfaceC12842fIq != null) {
interfaceC12842fIq.b(i);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ BilledHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new BilledHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559090, viewGroup, false));
}
}