118 lines
4.0 KiB
Java
118 lines
4.0 KiB
Java
|
package com.scb.phone.view.adapter.easycash;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.ImageView;
|
||
|
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.easycash.EasycashHeaderAdapter;
|
||
|
import java.util.List;
|
||
|
import o.C0657Lo;
|
||
|
import o.C0665Ls;
|
||
|
import o.C12891fKc;
|
||
|
import o.nMh;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class EasycashHeaderAdapter extends RecyclerView.Sts<LoanHeaderViewHolder> {
|
||
|
private final List<C0657Lo> b;
|
||
|
private final HBt c;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface HBt {
|
||
|
void d(C0665Ls c0665Ls);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class LoanHeaderViewHolder_ViewBinding implements Unbinder {
|
||
|
private LoanHeaderViewHolder e;
|
||
|
|
||
|
public LoanHeaderViewHolder_ViewBinding(LoanHeaderViewHolder loanHeaderViewHolder, View view) {
|
||
|
this.e = loanHeaderViewHolder;
|
||
|
loanHeaderViewHolder.image = (ImageView) pyT.e(view, R.id.easycash_header_image, "field 'image'", ImageView.class);
|
||
|
loanHeaderViewHolder.title = (TextView) pyT.e(view, R.id.easycash_header_title, "field 'title'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
LoanHeaderViewHolder loanHeaderViewHolder = this.e;
|
||
|
if (loanHeaderViewHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.e = null;
|
||
|
loanHeaderViewHolder.image = null;
|
||
|
loanHeaderViewHolder.title = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ void onBindViewHolder(LoanHeaderViewHolder loanHeaderViewHolder, int i) {
|
||
|
LoanHeaderViewHolder loanHeaderViewHolder2 = loanHeaderViewHolder;
|
||
|
final C0657Lo c0657Lo = this.b.get(i);
|
||
|
final HBt hBt = this.c;
|
||
|
Context context = loanHeaderViewHolder2.itemView.getContext();
|
||
|
loanHeaderViewHolder2.title.setText(c0657Lo.j);
|
||
|
C12891fKc.azn_(nMh.getDrawable(context, R.color.f3412131099849), loanHeaderViewHolder2.image, c0657Lo.q);
|
||
|
if (c0657Lo.p) {
|
||
|
loanHeaderViewHolder2.itemView.setAlpha(1.0f);
|
||
|
loanHeaderViewHolder2.itemView.setOnClickListener(new View.OnClickListener(hBt, c0657Lo) { // from class: o.ety
|
||
|
private EasycashHeaderAdapter.HBt a;
|
||
|
private C0657Lo b;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
this.a.d(this.b);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = hBt;
|
||
|
this.b = c0657Lo;
|
||
|
}
|
||
|
});
|
||
|
} else {
|
||
|
loanHeaderViewHolder2.itemView.setAlpha(0.5f);
|
||
|
loanHeaderViewHolder2.itemView.setOnClickListener(null);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public EasycashHeaderAdapter(List<C0657Lo> list, HBt hBt) {
|
||
|
this.b = list;
|
||
|
this.c = hBt;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final int getItemCount() {
|
||
|
List<C0657Lo> list = this.b;
|
||
|
if (list == null) {
|
||
|
return 0;
|
||
|
}
|
||
|
return list.size();
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static class LoanHeaderViewHolder extends RecyclerView.zJl {
|
||
|
|
||
|
@BindView
|
||
|
ImageView image;
|
||
|
|
||
|
@BindView
|
||
|
TextView title;
|
||
|
|
||
|
public LoanHeaderViewHolder(View view) {
|
||
|
super(view);
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
||
|
public final /* synthetic */ LoanHeaderViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||
|
return new LoanHeaderViewHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559108, viewGroup, false));
|
||
|
}
|
||
|
}
|