package com.scb.phone.view.custom.transferandpay; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.constraintlayout.widget.ConstraintLayout; import butterknife.BindView; import butterknife.ButterKnife; import com.scb.phone.R; import o.C12891fKc; import o.C15715hv; /* loaded from: classes5.dex */ public class CustomPhotoLeftDetails extends ConstraintLayout { private boolean a; @BindView public View dividirFullView; @BindView public View dividirView; @BindView TextView fourthText; @BindView TextView header; @BindView ImageView imageView; @BindView TextView secondText; @BindView TextView thirdText; @BindView TextView title; public CustomPhotoLeftDetails(Context context, AttributeSet attributeSet) { super(context, attributeSet); TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C15715hv.jbe.CustomPhotoLeftDetails, 0, 0); this.a = obtainStyledAttributes.getBoolean(0, false); obtainStyledAttributes.recycle(); LayoutInflater.from(context).inflate(this.a ? R.layout.2131560148 : R.layout.2131560112, (ViewGroup) this, true); ButterKnife.c(this); } public void setImageView(String str) { getContext(); C12891fKc.azo_(this.imageView, str); } public void setTitle(String str) { this.title.setVisibility(0); this.title.setText(str); } public void setSecondText(String str) { this.secondText.setVisibility(0); this.secondText.setText(str); } public void setThirdText(String str) { this.thirdText.setVisibility(0); this.thirdText.setText(str); } public void setFourth(String str) { this.fourthText.setVisibility(0); this.fourthText.setText(str); } public void setHeader(String str) { this.header.setText(str); } public void setLandscapeImageSize() { this.imageView.getLayoutParams().height = getResources().getDimensionPixelSize(R.dimen.f18882131165654); this.imageView.getLayoutParams().width = getResources().getDimensionPixelSize(R.dimen.f18892131165655); this.imageView.requestLayout(); } }