what-the-bank/sources/com/prolificinteractive/materialcalendarview/DirectionButton.java

32 lines
1012 B
Java

package com.prolificinteractive.materialcalendarview;
import android.content.Context;
import android.graphics.PorterDuff;
import android.util.TypedValue;
import android.widget.ImageView;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public class DirectionButton extends ImageView {
public DirectionButton(Context context) {
super(context);
setBackgroundResource(getThemeSelectableBackgroundId(context));
}
public void setColor(int i) {
setColorFilter(i, PorterDuff.Mode.SRC_ATOP);
}
@Override // android.view.View
public void setEnabled(boolean z) {
super.setEnabled(z);
setAlpha(z ? 1.0f : 0.1f);
}
private static int getThemeSelectableBackgroundId(Context context) {
TypedValue typedValue = new TypedValue();
context.getTheme().resolveAttribute(com.scb.phone.R.attr.selectableItemBackgroundBorderless, typedValue, true);
return typedValue.resourceId;
}
}