70 lines
1.9 KiB
Java
70 lines
1.9 KiB
Java
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.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 CustomNoteItem extends LinearLayout {
|
|
private String b;
|
|
|
|
@BindView
|
|
public View bottomSpace;
|
|
private int d;
|
|
|
|
@BindView
|
|
TextView descriptionTextView;
|
|
|
|
@BindView
|
|
public View divider;
|
|
|
|
@BindView
|
|
View dividerSpace;
|
|
|
|
@BindView
|
|
TextView titleTextView;
|
|
|
|
@BindView
|
|
public View topSpace;
|
|
|
|
public CustomNoteItem(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.d = 0;
|
|
this.d = context.getResources().getDimensionPixelOffset(R.dimen.f16672131165433);
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C15715hv.jbe.CustomNoteItem, 0, 0);
|
|
this.b = obtainStyledAttributes.getString(0);
|
|
obtainStyledAttributes.recycle();
|
|
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559191, (ViewGroup) this, true);
|
|
ButterKnife.c(this);
|
|
this.titleTextView.setText(this.b);
|
|
}
|
|
|
|
public void setText(String str) {
|
|
this.descriptionTextView.setText(str);
|
|
}
|
|
|
|
public void setTitle(String str) {
|
|
this.titleTextView.setText(str);
|
|
}
|
|
|
|
public final void d() {
|
|
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, -2);
|
|
int i = this.d;
|
|
layoutParams.setMargins(i, 0, i, 0);
|
|
this.descriptionTextView.setLayoutParams(layoutParams);
|
|
}
|
|
|
|
public void setFullDivider(boolean z) {
|
|
this.dividerSpace.setVisibility(z ? 8 : 0);
|
|
}
|
|
}
|