137 lines
5.0 KiB
Java
137 lines
5.0 KiB
Java
package com.scb.phone.view.adapter.creditcard;
|
|
|
|
import android.content.Context;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.ImageView;
|
|
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.squareup.picasso.Picasso;
|
|
import java.util.List;
|
|
import o.C0367Fb;
|
|
import o.C13020fOa;
|
|
import o.WYJ;
|
|
import o.pyT;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class CreditCardDetailPurchaseViewPagerAdapter extends WYJ {
|
|
private LayoutInflater a;
|
|
private List<C0367Fb> c;
|
|
|
|
@Override // o.WYJ
|
|
public final boolean isViewFromObject(View view, Object obj) {
|
|
return view == obj;
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class ItemViewHolder_ViewBinding implements Unbinder {
|
|
private ItemViewHolder b;
|
|
|
|
public ItemViewHolder_ViewBinding(ItemViewHolder itemViewHolder, View view) {
|
|
this.b = itemViewHolder;
|
|
itemViewHolder.creditCardImage = (ImageView) pyT.e(view, R.id.credit_card_image_view, "field 'creditCardImage'", ImageView.class);
|
|
itemViewHolder.name = (TextView) pyT.e(view, R.id.card_name_text_view, "field 'name'", TextView.class);
|
|
itemViewHolder.number = (TextView) pyT.e(view, R.id.card_number_text_view, "field 'number'", TextView.class);
|
|
itemViewHolder.frontNumber = (TextView) pyT.e(view, R.id.card_number_front_text_view, "field 'frontNumber'", TextView.class);
|
|
itemViewHolder.secondFrontNumber = (TextView) pyT.e(view, R.id.card_number_2nd_front_text_view, "field 'secondFrontNumber'", TextView.class);
|
|
itemViewHolder.availableValue = (TextView) pyT.e(view, R.id.available_value_text_view, "field 'availableValue'", TextView.class);
|
|
itemViewHolder.containerPoints = (RelativeLayout) pyT.e(view, R.id.available_amount_container_relative_layout, "field 'containerPoints'", RelativeLayout.class);
|
|
itemViewHolder.availableLabel = (TextView) pyT.e(view, R.id.available_label_text_view, "field 'availableLabel'", TextView.class);
|
|
}
|
|
|
|
@Override // butterknife.Unbinder
|
|
public final void a() {
|
|
ItemViewHolder itemViewHolder = this.b;
|
|
if (itemViewHolder == null) {
|
|
throw new IllegalStateException("Bindings already cleared.");
|
|
}
|
|
this.b = null;
|
|
itemViewHolder.creditCardImage = null;
|
|
itemViewHolder.name = null;
|
|
itemViewHolder.number = null;
|
|
itemViewHolder.frontNumber = null;
|
|
itemViewHolder.secondFrontNumber = null;
|
|
itemViewHolder.availableValue = null;
|
|
itemViewHolder.containerPoints = null;
|
|
itemViewHolder.availableLabel = null;
|
|
}
|
|
}
|
|
|
|
public CreditCardDetailPurchaseViewPagerAdapter(Context context, List<C0367Fb> list) {
|
|
this.a = (LayoutInflater) context.getSystemService("layout_inflater");
|
|
this.c = list;
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final int getCount() {
|
|
return this.c.size();
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final void destroyItem(ViewGroup viewGroup, int i, Object obj) {
|
|
viewGroup.removeView((View) obj);
|
|
}
|
|
|
|
@Override // o.WYJ
|
|
public final Object instantiateItem(ViewGroup viewGroup, int i) {
|
|
C0367Fb c0367Fb = this.c.get(i);
|
|
ItemViewHolder itemViewHolder = new ItemViewHolder(this.a.inflate(R.layout.2131559088, (ViewGroup) null));
|
|
C13020fOa b = Picasso.d().e(c0367Fb.p).e(R.drawable.default_card_without_logo).b(R.drawable.default_card);
|
|
b.e = true;
|
|
b.aBu_(itemViewHolder.creditCardImage, null);
|
|
itemViewHolder.e.setTag(c0367Fb);
|
|
itemViewHolder.number.setText(c0367Fb.r);
|
|
itemViewHolder.frontNumber.setText(c0367Fb.s);
|
|
itemViewHolder.secondFrontNumber.setText(c0367Fb.t);
|
|
itemViewHolder.availableValue.setTag(c0367Fb.g);
|
|
itemViewHolder.availableValue.setText(c0367Fb.d);
|
|
RelativeLayout relativeLayout = itemViewHolder.containerPoints;
|
|
StringBuilder sb = new StringBuilder("CREDIT_CARD_NUMBER");
|
|
sb.append(c0367Fb.g);
|
|
relativeLayout.setTag(sb.toString());
|
|
viewGroup.addView(itemViewHolder.e, 0);
|
|
return itemViewHolder.e;
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
static class ItemViewHolder extends RecyclerView.zJl {
|
|
|
|
@BindView
|
|
TextView availableLabel;
|
|
|
|
@BindView
|
|
TextView availableValue;
|
|
|
|
@BindView
|
|
RelativeLayout containerPoints;
|
|
|
|
@BindView
|
|
ImageView creditCardImage;
|
|
View e;
|
|
|
|
@BindView
|
|
TextView frontNumber;
|
|
|
|
@BindView
|
|
TextView name;
|
|
|
|
@BindView
|
|
TextView number;
|
|
|
|
@BindView
|
|
TextView secondFrontNumber;
|
|
|
|
ItemViewHolder(View view) {
|
|
super(view);
|
|
this.e = view;
|
|
ButterKnife.c(this, view);
|
|
}
|
|
}
|
|
}
|