package com.google.android.material.snackbar; import android.content.Context; import android.content.res.TypedArray; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.widget.FrameLayout; import androidx.core.view.n0; import c3.j; import com.google.android.material.internal.f; /* loaded from: classes2.dex */ public abstract class d extends FrameLayout { /* renamed from: d, reason: collision with root package name */ private static final View.OnTouchListener f4643d = new a(); /* renamed from: a, reason: collision with root package name */ private int f4644a; /* renamed from: b, reason: collision with root package name */ private final float f4645b; /* renamed from: c, reason: collision with root package name */ private final float f4646c; static class a implements View.OnTouchListener { a() { } @Override // android.view.View.OnTouchListener public boolean onTouch(View view, MotionEvent motionEvent) { return true; } } protected d(Context context, AttributeSet attributeSet) { super(f.f(context, attributeSet, 0, 0), attributeSet); TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(attributeSet, j.J2); if (obtainStyledAttributes.hasValue(j.O2)) { n0.u0(this, obtainStyledAttributes.getDimensionPixelSize(r4, 0)); } this.f4644a = obtainStyledAttributes.getInt(j.M2, 0); this.f4645b = obtainStyledAttributes.getFloat(j.N2, 1.0f); this.f4646c = obtainStyledAttributes.getFloat(j.L2, 1.0f); obtainStyledAttributes.recycle(); setOnTouchListener(f4643d); setFocusable(true); } float getActionTextColorAlpha() { return this.f4646c; } int getAnimationMode() { return this.f4644a; } float getBackgroundOverlayColorAlpha() { return this.f4645b; } @Override // android.view.ViewGroup, android.view.View protected void onAttachedToWindow() { super.onAttachedToWindow(); n0.k0(this); } @Override // android.view.ViewGroup, android.view.View protected void onDetachedFromWindow() { super.onDetachedFromWindow(); } @Override // android.widget.FrameLayout, android.view.ViewGroup, android.view.View protected void onLayout(boolean z10, int i10, int i11, int i12, int i13) { super.onLayout(z10, i10, i11, i12, i13); } void setAnimationMode(int i10) { this.f4644a = i10; } void setOnAttachStateChangeListener(b bVar) { } @Override // android.view.View public void setOnClickListener(View.OnClickListener onClickListener) { setOnTouchListener(onClickListener != null ? null : f4643d); super.setOnClickListener(onClickListener); } void setOnLayoutChangeListener(c cVar) { } }