128 lines
4.3 KiB
Java
128 lines
4.3 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.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.IntroductionViewPagerAdapter;
|
||
|
import com.squareup.picasso.Picasso;
|
||
|
import java.util.List;
|
||
|
import o.C0566Jp;
|
||
|
import o.C13020fOa;
|
||
|
import o.WYJ;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class IntroductionViewPagerAdapter extends WYJ {
|
||
|
private LayoutInflater a;
|
||
|
private LWm b;
|
||
|
private List<C0566Jp> c;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface LWm {
|
||
|
void b();
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final boolean isViewFromObject(View view, Object obj) {
|
||
|
return view == obj;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class IntroductionItemHolder_ViewBinding implements Unbinder {
|
||
|
private IntroductionItemHolder b;
|
||
|
|
||
|
public IntroductionItemHolder_ViewBinding(IntroductionItemHolder introductionItemHolder, View view) {
|
||
|
this.b = introductionItemHolder;
|
||
|
introductionItemHolder.image = (ImageView) pyT.e(view, R.id.introduction_image_view, "field 'image'", ImageView.class);
|
||
|
introductionItemHolder.title = (TextView) pyT.e(view, R.id.introduction_title, "field 'title'", TextView.class);
|
||
|
introductionItemHolder.subTitle = (TextView) pyT.e(view, R.id.introduction_sub_title, "field 'subTitle'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
IntroductionItemHolder introductionItemHolder = this.b;
|
||
|
if (introductionItemHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.b = null;
|
||
|
introductionItemHolder.image = null;
|
||
|
introductionItemHolder.title = null;
|
||
|
introductionItemHolder.subTitle = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public IntroductionViewPagerAdapter(Context context, List<C0566Jp> list, LWm lWm) {
|
||
|
this.a = (LayoutInflater) context.getSystemService("layout_inflater");
|
||
|
this.c = list;
|
||
|
this.b = lWm;
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final Object instantiateItem(ViewGroup viewGroup, int i) {
|
||
|
IntroductionItemHolder introductionItemHolder = new IntroductionItemHolder(this, this.a.inflate(R.layout.2131559054, (ViewGroup) null));
|
||
|
C0566Jp c0566Jp = this.c.get(i);
|
||
|
C13020fOa b = Picasso.d().e(c0566Jp.d).e(R.drawable.introduction_placeholder).b(R.drawable.introduction_placeholder);
|
||
|
b.e = true;
|
||
|
b.aBu_(introductionItemHolder.image, null);
|
||
|
introductionItemHolder.title.setText(c0566Jp.b);
|
||
|
introductionItemHolder.subTitle.setText(c0566Jp.c);
|
||
|
introductionItemHolder.itemView.setOnClickListener(new View.OnClickListener(this) { // from class: o.esT
|
||
|
private IntroductionViewPagerAdapter e;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
this.e.b.b();
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.e = this;
|
||
|
}
|
||
|
});
|
||
|
viewGroup.addView(introductionItemHolder.itemView, 0);
|
||
|
return introductionItemHolder.itemView;
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final void destroyItem(ViewGroup viewGroup, int i, Object obj) {
|
||
|
viewGroup.removeView((View) obj);
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final int getCount() {
|
||
|
List<C0566Jp> list = this.c;
|
||
|
if (list != null) {
|
||
|
return list.size();
|
||
|
}
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
class IntroductionItemHolder extends RecyclerView.zJl {
|
||
|
private IntroductionViewPagerAdapter d;
|
||
|
|
||
|
@BindView
|
||
|
ImageView image;
|
||
|
|
||
|
@BindView
|
||
|
TextView subTitle;
|
||
|
|
||
|
@BindView
|
||
|
TextView title;
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public IntroductionItemHolder(IntroductionViewPagerAdapter introductionViewPagerAdapter, View view) {
|
||
|
super(view);
|
||
|
this.d = introductionViewPagerAdapter;
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
}
|