93 lines
2.5 KiB
Java
93 lines
2.5 KiB
Java
|
package com.scb.phone.view.custom.common;
|
||
|
|
||
|
import android.content.Context;
|
||
|
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.C14957gcv;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class CustomGiftingView extends LinearLayout {
|
||
|
|
||
|
@BindView
|
||
|
public ImageView giftIcon;
|
||
|
|
||
|
@BindView
|
||
|
public TextView giftTextView;
|
||
|
|
||
|
public CustomGiftingView(Context context) {
|
||
|
super(context);
|
||
|
a();
|
||
|
}
|
||
|
|
||
|
public CustomGiftingView(Context context, AttributeSet attributeSet) {
|
||
|
super(context, attributeSet);
|
||
|
a();
|
||
|
}
|
||
|
|
||
|
public CustomGiftingView(Context context, AttributeSet attributeSet, int i) {
|
||
|
super(context, attributeSet, i);
|
||
|
a();
|
||
|
}
|
||
|
|
||
|
private final void a() {
|
||
|
LayoutInflater.from(getContext()).inflate(R.layout.2131559031, (ViewGroup) this, true);
|
||
|
ButterKnife.c(this);
|
||
|
ImageView imageView = this.giftIcon;
|
||
|
TextView textView = null;
|
||
|
if (imageView == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView = null;
|
||
|
}
|
||
|
imageView.getLayoutParams().width = getResources().getDimensionPixelSize(R.dimen.f16082131165374);
|
||
|
ImageView imageView2 = this.giftIcon;
|
||
|
if (imageView2 == null) {
|
||
|
C14957gcv.a("");
|
||
|
imageView2 = null;
|
||
|
}
|
||
|
imageView2.getLayoutParams().height = getResources().getDimensionPixelSize(R.dimen.f16082131165374);
|
||
|
TextView textView2 = this.giftTextView;
|
||
|
if (textView2 != null) {
|
||
|
textView = textView2;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(R.string.transfer_gifting_input_title);
|
||
|
}
|
||
|
|
||
|
public final void setLayoutEnabled(boolean z) {
|
||
|
setEnabled(z);
|
||
|
setAlpha(z ? 1.0f : 0.6f);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class LWm {
|
||
|
private LWm() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ LWm(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public final void setGiftTextView(TextView textView) {
|
||
|
C14957gcv.e(textView, "");
|
||
|
this.giftTextView = textView;
|
||
|
}
|
||
|
|
||
|
public final void setGiftIcon(ImageView imageView) {
|
||
|
C14957gcv.e(imageView, "");
|
||
|
this.giftIcon = imageView;
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new LWm((byte) 0);
|
||
|
}
|
||
|
}
|