what-the-bank/sources/com/scb/phone/view/custom/common/CustomCustomizePageItem.java

89 lines
2.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.common;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.RelativeLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import o.InterfaceC12844fIs;
/* loaded from: classes5.dex */
public class CustomCustomizePageItem extends RelativeLayout {
private InterfaceC12844fIs a;
@BindView
public CheckBox checkBox;
@BindView
TextView description;
@BindView
View divider;
@BindView
TextView title;
public CustomCustomizePageItem(Context context) {
super(context);
if (isInEditMode()) {
return;
}
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131558984, (ViewGroup) this, true);
ButterKnife.c(this);
}
public CustomCustomizePageItem(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
if (isInEditMode()) {
return;
}
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131558984, (ViewGroup) this, true);
ButterKnife.c(this);
}
public CustomCustomizePageItem(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
if (isInEditMode()) {
return;
}
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131558984, (ViewGroup) this, true);
ButterKnife.c(this);
}
@OnClick
public void onToggleCheckedChanged() {
InterfaceC12844fIs interfaceC12844fIs = this.a;
if (interfaceC12844fIs != null) {
this.checkBox.isChecked();
interfaceC12844fIs.e();
}
}
public void setTitle(String str) {
this.title.setText(str);
}
public void setDescription(String str) {
this.description.setText(str);
}
public void setDividerVisible(boolean z) {
this.divider.setVisibility(z ? 0 : 8);
}
public void setToggleStatus(boolean z) {
this.checkBox.setChecked(z);
}
public void setOnCustomCustomizePageItemClickListener(InterfaceC12844fIs interfaceC12844fIs) {
this.a = interfaceC12844fIs;
}
}