127 lines
4.7 KiB
Java
127 lines
4.7 KiB
Java
package com.scb.phone.view.adapter.demontb;
|
|
|
|
import android.content.Context;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ImageView;
|
|
import android.widget.LinearLayout;
|
|
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.demontb.BankingServiceAdapter;
|
|
import com.squareup.picasso.Picasso;
|
|
import java.util.List;
|
|
import o.C0907Rf;
|
|
import o.C13020fOa;
|
|
import o.C6583cXR;
|
|
import o.InterfaceC12835fIj;
|
|
import o.fNW;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class BankingServiceAdapter extends RecyclerView.Sts<CustomViewHolder> {
|
|
private final InterfaceC12835fIj c;
|
|
private final Context d;
|
|
private final List<C0907Rf.Sts> e;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class CustomViewHolder_ViewBinding implements Unbinder {
|
|
private CustomViewHolder e;
|
|
|
|
public CustomViewHolder_ViewBinding(CustomViewHolder customViewHolder, View view) {
|
|
this.e = customViewHolder;
|
|
customViewHolder.icon = (ImageView) pyT.e(view, R.id.banking_action_icon, "field 'icon'", ImageView.class);
|
|
customViewHolder.description = (TextView) pyT.e(view, R.id.banking_action_description, "field 'description'", TextView.class);
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
CustomViewHolder customViewHolder = this.e;
|
|
if (customViewHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.e = null;
|
|
customViewHolder.icon = null;
|
|
customViewHolder.description = null;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ void onBindViewHolder(CustomViewHolder customViewHolder, int i) {
|
|
CustomViewHolder customViewHolder2 = customViewHolder;
|
|
customViewHolder2.a = i;
|
|
customViewHolder2.description.setText(this.e.get(i).K);
|
|
customViewHolder2.icon.setPadding(C6583cXR.d(20, this.d), C6583cXR.d(10, this.d), C6583cXR.d(20, this.d), C6583cXR.d(10, this.d));
|
|
C13020fOa e = Picasso.d().e(this.e.get(i).f);
|
|
e.e = true;
|
|
fNW.IeS ieS = e.a;
|
|
if (ieS.e) {
|
|
throw new IllegalStateException("Center inside can not be used after calling centerCrop");
|
|
}
|
|
ieS.d = true;
|
|
e.aBu_(customViewHolder2.icon, null);
|
|
if (i / 3 == this.e.size() / 3) {
|
|
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
|
|
layoutParams.setMargins(0, 0, 0, C6583cXR.d(70, this.d));
|
|
customViewHolder2.itemView.setLayoutParams(layoutParams);
|
|
}
|
|
}
|
|
|
|
public BankingServiceAdapter(Context context, InterfaceC12835fIj interfaceC12835fIj, List<C0907Rf.Sts> list) {
|
|
this.c = interfaceC12835fIj;
|
|
this.e = list;
|
|
this.d = context;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
return this.e.size();
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class CustomViewHolder extends RecyclerView.zJl {
|
|
int a;
|
|
|
|
@BindView
|
|
TextView description;
|
|
private BankingServiceAdapter e;
|
|
|
|
@BindView
|
|
ImageView icon;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
CustomViewHolder(BankingServiceAdapter bankingServiceAdapter, View view) {
|
|
super(view);
|
|
this.e = bankingServiceAdapter;
|
|
ButterKnife.c(this, view);
|
|
view.setOnClickListener(new View.OnClickListener(this) { // from class: o.esP
|
|
private BankingServiceAdapter.CustomViewHolder d;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view2) {
|
|
BankingServiceAdapter.CustomViewHolder.c(this.d);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
}
|
|
});
|
|
}
|
|
|
|
public static /* synthetic */ void c(CustomViewHolder customViewHolder) {
|
|
if (customViewHolder.e.c != null) {
|
|
customViewHolder.e.c.e(customViewHolder.a);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ CustomViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
return new CustomViewHolder(this, LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131559063, (ViewGroup) null));
|
|
}
|
|
}
|