content: package androidx.appcompat.view.menu;
  
  import android.content.Context;
  import android.util.AttributeSet;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.ListView;
  import androidx.appcompat.view.menu.MenuBuilder;
  import androidx.appcompat.widget.TintTypedArray;
  
  public final class ExpandedMenuView extends ListView implements MenuBuilder.ItemInvoker, MenuView, AdapterView.OnItemClickListener {
      private static final int[] TINT_ATTRS = {16842964, 16843049};
      private int mAnimations;
      private MenuBuilder mMenu;
  
      public ExpandedMenuView(Context context, AttributeSet attrs) {
          this(context, attrs, 16842868);
      }
  
      public ExpandedMenuView(Context context, AttributeSet attrs, int defStyleAttr) {
          super(context, attrs);
          setOnItemClickListener(this);
          TintTypedArray obtainStyledAttributes = TintTypedArray.obtainStyledAttributes(context, attrs, TINT_ATTRS, defStyleAttr, 0);
          if (obtainStyledAttributes.hasValue(0)) {
              setBackgroundDrawable(obtainStyledAttributes.getDrawable(0));
          }
          if (obtainStyledAttributes.hasValue(1)) {
              setDivider(obtainStyledAttributes.getDrawable(1));
          }
          obtainStyledAttributes.recycle();
      }
  
      public int getWindowAnimations() {
          return this.mAnimations;
      }
  
      public void initialize(MenuBuilder menu) {
          this.mMenu = menu;
      }
  
      public boolean invokeItem(MenuItemImpl item) {
          return this.mMenu.performItemAction(item, 0);
      }
  
      /* access modifiers changed from: protected */
      public void onDetachedFromWindow() {
          super.onDetachedFromWindow();
          setChildrenDrawingCacheEnabled(false);
      }
  
      public void onItemClick(AdapterView parent, View v, int position, long id) {
          invokeItem((MenuItemImpl) getAdapter().getItem(position));
      }
  }
  