119 lines
4.1 KiB
Java
119 lines
4.1 KiB
Java
|
package com.scb.phone.view.adapter;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.res.TypedArray;
|
||
|
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 o.WYJ;
|
||
|
import o.pyT;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class OnBoardingTutorialViewPagerAdapter extends WYJ implements View.OnClickListener {
|
||
|
private TypedArray a;
|
||
|
private TypedArray b;
|
||
|
public RVV c;
|
||
|
private TypedArray d;
|
||
|
private LayoutInflater e;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public interface RVV {
|
||
|
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 d;
|
||
|
|
||
|
public TutorialItemHolder_ViewBinding(TutorialItemHolder tutorialItemHolder, View view) {
|
||
|
this.d = tutorialItemHolder;
|
||
|
tutorialItemHolder.mImage = (ImageView) pyT.e(view, R.id.on_boarding_tutorial_image_view, "field 'mImage'", ImageView.class);
|
||
|
tutorialItemHolder.mTitle1 = (TextView) pyT.e(view, R.id.on_boarding_tutorial_text_view_1, "field 'mTitle1'", TextView.class);
|
||
|
tutorialItemHolder.mTitle2 = (TextView) pyT.e(view, R.id.on_boarding_tutorial_text_view_2, "field 'mTitle2'", TextView.class);
|
||
|
}
|
||
|
|
||
|
@Override // butterknife.Unbinder
|
||
|
public final void a() {
|
||
|
TutorialItemHolder tutorialItemHolder = this.d;
|
||
|
if (tutorialItemHolder == null) {
|
||
|
throw new IllegalStateException("Bindings already cleared.");
|
||
|
}
|
||
|
this.d = null;
|
||
|
tutorialItemHolder.mImage = null;
|
||
|
tutorialItemHolder.mTitle1 = null;
|
||
|
tutorialItemHolder.mTitle2 = null;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public OnBoardingTutorialViewPagerAdapter(Context context) {
|
||
|
this.e = (LayoutInflater) context.getSystemService("layout_inflater");
|
||
|
this.d = context.getResources().obtainTypedArray(R.array.2130903068);
|
||
|
this.a = context.getResources().obtainTypedArray(R.array.2130903069);
|
||
|
this.b = context.getResources().obtainTypedArray(R.array.2130903067);
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final int getCount() {
|
||
|
return this.d.length();
|
||
|
}
|
||
|
|
||
|
@Override // o.WYJ
|
||
|
public final Object instantiateItem(ViewGroup viewGroup, int i) {
|
||
|
TutorialItemHolder tutorialItemHolder = new TutorialItemHolder(this, this.e.inflate(R.layout.2131559286, (ViewGroup) null));
|
||
|
tutorialItemHolder.mImage.setImageDrawable(this.b.getDrawable(i));
|
||
|
tutorialItemHolder.mTitle1.setText(this.d.getString(i));
|
||
|
tutorialItemHolder.mTitle2.setText(this.a.getString(i));
|
||
|
tutorialItemHolder.a.setOnClickListener(this);
|
||
|
viewGroup.addView(tutorialItemHolder.a, 0);
|
||
|
return tutorialItemHolder.a;
|
||
|
}
|
||
|
|
||
|
@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 {
|
||
|
View a;
|
||
|
private OnBoardingTutorialViewPagerAdapter c;
|
||
|
|
||
|
@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(OnBoardingTutorialViewPagerAdapter onBoardingTutorialViewPagerAdapter, View view) {
|
||
|
super(view);
|
||
|
this.c = onBoardingTutorialViewPagerAdapter;
|
||
|
this.a = view;
|
||
|
ButterKnife.c(this, view);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
RVV rvv = this.c;
|
||
|
if (rvv != null) {
|
||
|
rvv.onPageClick(view);
|
||
|
}
|
||
|
}
|
||
|
}
|