125 lines
4.4 KiB
Java
125 lines
4.4 KiB
Java
package com.scb.phone.view.adapter.findus;
|
|
|
|
import android.content.Context;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
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.findus.SelectProvinceOrDistrictAdapter;
|
|
import java.util.List;
|
|
import o.InterfaceC12824fIT;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class SelectProvinceOrDistrictAdapter extends RecyclerView.Sts<ViewHolder> {
|
|
private Context b;
|
|
private InterfaceC12824fIT d;
|
|
private List<String> e;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class ViewHolder_ViewBinding implements Unbinder {
|
|
private ViewHolder d;
|
|
|
|
public ViewHolder_ViewBinding(ViewHolder viewHolder, View view) {
|
|
this.d = viewHolder;
|
|
viewHolder.relativeLayout = (RelativeLayout) pyT.e(view, R.id.relative_layout, "field 'relativeLayout'", RelativeLayout.class);
|
|
viewHolder.textView = (TextView) pyT.e(view, R.id.name_text_view, "field 'textView'", TextView.class);
|
|
viewHolder.footerDivider = pyT.a(view, R.id.footer_divider_view, "field 'footerDivider'");
|
|
viewHolder.footer = pyT.a(view, R.id.footer_view, "field 'footer'");
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
ViewHolder viewHolder = this.d;
|
|
if (viewHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.d = null;
|
|
viewHolder.relativeLayout = null;
|
|
viewHolder.textView = null;
|
|
viewHolder.footerDivider = null;
|
|
viewHolder.footer = null;
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ void onBindViewHolder(ViewHolder viewHolder, final int i) {
|
|
ViewHolder viewHolder2 = viewHolder;
|
|
viewHolder2.textView.setText(this.e.get(i));
|
|
if (i < getItemCount() - 1) {
|
|
viewHolder2.footerDivider.setVisibility(8);
|
|
viewHolder2.footer.setVisibility(8);
|
|
} else {
|
|
viewHolder2.footerDivider.setVisibility(0);
|
|
viewHolder2.footer.setVisibility(0);
|
|
}
|
|
viewHolder2.relativeLayout.setOnClickListener(new View.OnClickListener(this, i) { // from class: o.euD
|
|
private SelectProvinceOrDistrictAdapter d;
|
|
private int e;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
SelectProvinceOrDistrictAdapter.e(this.d, this.e);
|
|
}
|
|
|
|
{
|
|
this.d = this;
|
|
this.e = i;
|
|
}
|
|
});
|
|
}
|
|
|
|
public SelectProvinceOrDistrictAdapter(Context context, List<String> list, InterfaceC12824fIT interfaceC12824fIT) {
|
|
this.b = context;
|
|
this.e = list;
|
|
this.d = interfaceC12824fIT;
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final int getItemCount() {
|
|
return this.e.size();
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class ViewHolder extends RecyclerView.zJl {
|
|
private SelectProvinceOrDistrictAdapter e;
|
|
|
|
@BindView
|
|
View footer;
|
|
|
|
@BindView
|
|
View footerDivider;
|
|
|
|
@BindView
|
|
RelativeLayout relativeLayout;
|
|
|
|
@BindView
|
|
TextView textView;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public ViewHolder(SelectProvinceOrDistrictAdapter selectProvinceOrDistrictAdapter, View view) {
|
|
super(view);
|
|
this.e = selectProvinceOrDistrictAdapter;
|
|
ButterKnife.c(this, view);
|
|
}
|
|
}
|
|
|
|
public static /* synthetic */ void e(SelectProvinceOrDistrictAdapter selectProvinceOrDistrictAdapter, int i) {
|
|
InterfaceC12824fIT interfaceC12824fIT = selectProvinceOrDistrictAdapter.d;
|
|
if (interfaceC12824fIT != null) {
|
|
interfaceC12824fIT.a(i);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.recyclerview.widget.RecyclerView.Sts
|
|
public final /* synthetic */ ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
|
|
return new ViewHolder(this, LayoutInflater.from(this.b).inflate(R.layout.2131559208, viewGroup, false));
|
|
}
|
|
}
|