what-the-bank/sources/com/scb/phone/view/adapter/etb/InformationPanelAdapter.java

124 lines
4.3 KiB
Java

package com.scb.phone.view.adapter.etb;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Space;
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.custom.ImageTextView;
import java.util.ArrayList;
import java.util.List;
import o.C12891fKc;
import o.nMh;
import o.pyT;
/* loaded from: classes5.dex */
public final class InformationPanelAdapter extends RecyclerView.Sts<ItemHolder> {
public final List<RVV> a = new ArrayList();
/* loaded from: classes5.dex */
public static final class RVV {
public String a;
public String b;
public String c;
public String d;
public String e;
}
/* loaded from: classes5.dex */
public class ItemHolder_ViewBinding implements Unbinder {
private ItemHolder e;
public ItemHolder_ViewBinding(ItemHolder itemHolder, View view) {
this.e = itemHolder;
itemHolder.tvTitle = (TextView) pyT.e(view, R.id.tv_item_information_panel_title, "field 'tvTitle'", TextView.class);
itemHolder.tvTargetName = (ImageTextView) pyT.e(view, R.id.target_name_text_view, "field 'tvTargetName'", ImageTextView.class);
itemHolder.tvSub1 = (TextView) pyT.e(view, R.id.tv_item_information_panel_sub_1, "field 'tvSub1'", TextView.class);
itemHolder.tvSub2 = (TextView) pyT.e(view, R.id.tv_item_information_panel_sub_2, "field 'tvSub2'", TextView.class);
itemHolder.spSeparator = (Space) pyT.e(view, R.id.space_separator, "field 'spSeparator'", Space.class);
}
@Override // butterknife.Unbinder
public final void a() {
ItemHolder itemHolder = this.e;
if (itemHolder == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.e = null;
itemHolder.tvTitle = null;
itemHolder.tvTargetName = null;
itemHolder.tvSub1 = null;
itemHolder.tvSub2 = null;
itemHolder.spSeparator = null;
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ void onBindViewHolder(ItemHolder itemHolder, int i) {
ItemHolder itemHolder2 = itemHolder;
RVV rvv = this.a.get(i);
itemHolder2.tvTitle.setText(rvv.e);
String str = rvv.c;
if (str != null) {
Context context = itemHolder2.b;
C12891fKc.c(context, R.drawable.bankicon_place_holder, itemHolder2.tvTargetName, str, context.getResources().getDimensionPixelOffset(R.dimen.f27732131166539), nMh.getColor(itemHolder2.b, R.color.f3412131099849));
}
itemHolder2.tvTargetName.setText(rvv.b);
String str2 = rvv.a;
if (str2 != null) {
itemHolder2.tvSub1.setVisibility(0);
itemHolder2.tvSub1.setText(str2);
}
String str3 = rvv.d;
if (str3 != null) {
itemHolder2.tvSub2.setVisibility(0);
itemHolder2.tvSub2.setText(str3);
}
itemHolder2.spSeparator.setVisibility(i == this.a.size() + (-1) ? 8 : 0);
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final int getItemCount() {
return this.a.size();
}
/* loaded from: classes5.dex */
static class ItemHolder extends RecyclerView.zJl {
Context b;
@BindView
Space spSeparator;
@BindView
TextView tvSub1;
@BindView
TextView tvSub2;
@BindView
ImageTextView tvTargetName;
@BindView
TextView tvTitle;
public ItemHolder(View view) {
super(view);
this.b = view.getContext();
ButterKnife.c(this, this.itemView);
this.tvSub1.setVisibility(8);
this.tvSub2.setVisibility(8);
}
}
@Override // androidx.recyclerview.widget.RecyclerView.Sts
public final /* synthetic */ ItemHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
return new ItemHolder(LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.2131560013, viewGroup, false));
}
}