84 lines
2.3 KiB
Java
84 lines
2.3 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.RelativeLayout;
|
||
|
import android.widget.TextView;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.custom.common.ThaiTextView;
|
||
|
import o.C15715hv;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class CustomTransferAndPayItem extends RelativeLayout {
|
||
|
|
||
|
@BindView
|
||
|
public CustomAmountInfo amountInfo;
|
||
|
private boolean b;
|
||
|
private String d;
|
||
|
|
||
|
@BindView
|
||
|
public LinearLayout lineView;
|
||
|
|
||
|
@BindView
|
||
|
public View mBottomSpace;
|
||
|
|
||
|
@BindView
|
||
|
View mDividerSpaceView;
|
||
|
|
||
|
@BindView
|
||
|
public View mDividerView;
|
||
|
|
||
|
@BindView
|
||
|
TextView mTitleTextView;
|
||
|
|
||
|
@BindView
|
||
|
public View mTopSpace;
|
||
|
|
||
|
@BindView
|
||
|
TextView mValueTextView;
|
||
|
|
||
|
@BindView
|
||
|
public ThaiTextView scheduleFeeText;
|
||
|
|
||
|
public CustomTransferAndPayItem(Context context, AttributeSet attributeSet) {
|
||
|
super(context, attributeSet);
|
||
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C15715hv.jbe.CustomTransferAndPayItem, 0, 0);
|
||
|
this.d = obtainStyledAttributes.getString(1);
|
||
|
this.b = obtainStyledAttributes.getBoolean(0, true);
|
||
|
obtainStyledAttributes.recycle();
|
||
|
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559380, (ViewGroup) this, true);
|
||
|
ButterKnife.c(this);
|
||
|
this.mTitleTextView.setText(this.d);
|
||
|
this.mDividerView.setVisibility(this.b ? 0 : 8);
|
||
|
}
|
||
|
|
||
|
public void setText(String str) {
|
||
|
this.mTitleTextView.setText(str);
|
||
|
}
|
||
|
|
||
|
public void setValue(String str) {
|
||
|
this.mValueTextView.setText(str);
|
||
|
}
|
||
|
|
||
|
public void setFullDivider(boolean z) {
|
||
|
this.mDividerSpaceView.setVisibility(z ? 8 : 0);
|
||
|
}
|
||
|
|
||
|
public void setDescriptionText(String str) {
|
||
|
this.scheduleFeeText.setText(str);
|
||
|
}
|
||
|
|
||
|
public void setDescriptionAlignToLeft() {
|
||
|
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) this.scheduleFeeText.getLayoutParams();
|
||
|
layoutParams.addRule(9);
|
||
|
this.scheduleFeeText.setLayoutParams(layoutParams);
|
||
|
}
|
||
|
}
|