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

36 lines
1018 B
Java
Raw 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.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
/* loaded from: classes5.dex */
public class CustomLimit extends LinearLayout {
@BindView
public ViewGroup mLimitProgress;
@BindView
public TextView remainingLimit;
public CustomLimit(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
((LayoutInflater) context.getSystemService("layout_inflater")).inflate(R.layout.2131559260, (ViewGroup) this, true);
ButterKnife.c(this);
setOrientation(0);
setGravity(8388613);
}
public void setText(String str) {
this.mLimitProgress.setVisibility(8);
this.remainingLimit.setVisibility(0);
this.remainingLimit.setText(str);
}
}