what-the-bank/sources/com/scb/phone/view/custom/transferandpay/CustomMovieTicket.java

86 lines
1.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.transferandpay;
import android.content.Context;
import android.graphics.Bitmap;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import o.C12891fKc;
import o.C6583cXR;
/* loaded from: classes5.dex */
public class CustomMovieTicket extends LinearLayout {
@BindView
TextView bookingId;
@BindView
TextView cinemaLocation;
@BindView
TextView cinemaNumber;
@BindView
ImageView poster;
@BindView
ImageView qrCode;
@BindView
TextView seat;
@BindView
TextView showtime;
@BindView
TextView title;
public CustomMovieTicket(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131560109, (ViewGroup) this, true);
ButterKnife.c(this);
}
public void setQrCode(String str) {
Bitmap VV_ = C6583cXR.VV_(str, 500, 500);
if (VV_ != null) {
this.qrCode.setImageBitmap(VV_);
}
}
public void setPoster(String str) {
getContext();
C12891fKc.azo_(this.poster, str);
}
public void setTitle(String str) {
this.title.setText(str);
}
public void setCinemaLocation(String str) {
this.cinemaLocation.setText(str);
}
public void setShowtime(String str) {
this.showtime.setText(str);
}
public void setCinemaNumber(String str) {
this.cinemaNumber.setText(str);
}
public void setSeat(String str) {
this.seat.setText(str);
}
public void setBookingId(String str) {
this.bookingId.setText(str);
}
}