package androidx.appcompat.view.menu;

import android.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import com.google.android.material.datepicker.c;
import m.InterfaceC1146g;
import m.MenuItemC1148i;

/* JADX INFO: loaded from: classes.dex */
public final class ExpandedMenuView extends ListView implements InterfaceC1146g, AdapterView.OnItemClickListener {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public static final int[] f7725q = {R.attr.background, R.attr.divider};

    public ExpandedMenuView(Context context, AttributeSet attributeSet) {
        super(context, attributeSet);
        setOnItemClickListener(this);
        c cVarZ = c.z(context, attributeSet, f7725q, R.attr.listViewStyle);
        TypedArray typedArray = (TypedArray) cVarZ.f10220s;
        if (typedArray.hasValue(0)) {
            setBackgroundDrawable(cVarZ.u(0));
        }
        if (typedArray.hasValue(1)) {
            setDivider(cVarZ.u(1));
        }
        cVarZ.B();
    }

    @Override // m.InterfaceC1146g
    public final boolean a(MenuItemC1148i menuItemC1148i) {
        throw null;
    }

    public int getWindowAnimations() {
        return 0;
    }

    @Override // android.widget.ListView, android.widget.AbsListView, android.widget.AdapterView, android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        setChildrenDrawingCacheEnabled(false);
    }

    @Override // android.widget.AdapterView.OnItemClickListener
    public final void onItemClick(AdapterView adapterView, View view, int i, long j8) {
        throw null;
    }
}
