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

47 lines
1.3 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.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import o.C15715hv;
/* loaded from: classes5.dex */
public class CustomAddressItem extends LinearLayout {
private String c;
@BindView
TextView descriptionTextView;
@BindView
View divider;
@BindView
TextView titleTextView;
public CustomAddressItem(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C15715hv.jbe.CustomNoteItem, 0, 0);
this.c = obtainStyledAttributes.getString(0);
obtainStyledAttributes.recycle();
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559057, (ViewGroup) this, true);
ButterKnife.c(this);
this.titleTextView.setText(this.c);
}
public void setTitle(String str) {
this.titleTextView.setText(str);
}
public void setText(String str) {
this.descriptionTextView.setText(str);
}
}