119 lines
4.0 KiB
Java
119 lines
4.0 KiB
Java
package com.scb.phone.view.adapter;
|
|
|
|
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 java.util.List;
|
|
import o.WYJ;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class LifestyleTutorialViewPagerAdapter extends WYJ implements View.OnClickListener {
|
|
private List<String> a;
|
|
public LWm b;
|
|
private LayoutInflater c;
|
|
private List<String> d;
|
|
private List<Integer> e;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public interface LWm {
|
|
void onPageClick(View view);
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final boolean isViewFromObject(View view, Object obj) {
|
|
return view == obj;
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class TutorialItemHolder_ViewBinding implements Unbinder {
|
|
private TutorialItemHolder b;
|
|
|
|
public TutorialItemHolder_ViewBinding(TutorialItemHolder tutorialItemHolder, View view) {
|
|
this.b = tutorialItemHolder;
|
|
tutorialItemHolder.mImage = (ImageView) pyT.e(view, R.id.lifestyle_tutorial_image_view, "field 'mImage'", ImageView.class);
|
|
tutorialItemHolder.mTitle1 = (TextView) pyT.e(view, R.id.lifestyle_tutorial_text_view_1, "field 'mTitle1'", TextView.class);
|
|
tutorialItemHolder.mTitle2 = (TextView) pyT.e(view, R.id.lifestyle_tutorial_text_view_2, "field 'mTitle2'", TextView.class);
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
TutorialItemHolder tutorialItemHolder = this.b;
|
|
if (tutorialItemHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.b = null;
|
|
tutorialItemHolder.mImage = null;
|
|
tutorialItemHolder.mTitle1 = null;
|
|
tutorialItemHolder.mTitle2 = null;
|
|
}
|
|
}
|
|
|
|
public LifestyleTutorialViewPagerAdapter(Context context, List<Integer> list, List<String> list2, List<String> list3) {
|
|
this.c = (LayoutInflater) context.getSystemService("layout_inflater");
|
|
this.e = list;
|
|
this.d = list2;
|
|
this.a = list3;
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final int getCount() {
|
|
return this.d.size();
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final Object instantiateItem(ViewGroup viewGroup, int i) {
|
|
TutorialItemHolder tutorialItemHolder = new TutorialItemHolder(this, this.c.inflate(R.layout.2131559258, (ViewGroup) null));
|
|
tutorialItemHolder.mImage.setImageResource(this.e.get(i).intValue());
|
|
tutorialItemHolder.mTitle1.setText(this.d.get(i));
|
|
tutorialItemHolder.mTitle2.setText(this.a.get(i));
|
|
tutorialItemHolder.e.setOnClickListener(this);
|
|
viewGroup.addView(tutorialItemHolder.e, 0);
|
|
return tutorialItemHolder.e;
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final void destroyItem(ViewGroup viewGroup, int i, Object obj) {
|
|
viewGroup.removeView((View) obj);
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
class TutorialItemHolder extends RecyclerView.zJl {
|
|
private LifestyleTutorialViewPagerAdapter c;
|
|
View e;
|
|
|
|
@BindView
|
|
ImageView mImage;
|
|
|
|
@BindView
|
|
TextView mTitle1;
|
|
|
|
@BindView
|
|
TextView mTitle2;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
TutorialItemHolder(LifestyleTutorialViewPagerAdapter lifestyleTutorialViewPagerAdapter, View view) {
|
|
super(view);
|
|
this.c = lifestyleTutorialViewPagerAdapter;
|
|
this.e = view;
|
|
ButterKnife.c(this, view);
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
LWm lWm = this.b;
|
|
if (lWm != null) {
|
|
lWm.onPageClick(view);
|
|
}
|
|
}
|
|
}
|