content: package android.support.v7.view.menu;
  
  import android.content.Context;
  import android.graphics.Rect;
  import android.view.MenuItem;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.AdapterView;
  import android.widget.FrameLayout;
  import android.widget.HeaderViewListAdapter;
  import android.widget.ListAdapter;
  import android.widget.PopupWindow;
  
  abstract class MenuPopup implements ShowableListMenu, MenuPresenter, AdapterView.OnItemClickListener {
    private Rect mEpicenterBounds;
    
    protected static int measureIndividualMenuWidth(ListAdapter paramListAdapter, ViewGroup paramViewGroup, Context paramContext, int paramInt) {
      byte b = 0;
      int i = View.MeasureSpec.makeMeasureSpec(0, 0);
      int j = View.MeasureSpec.makeMeasureSpec(0, 0);
      int k = paramListAdapter.getCount();
      ViewGroup viewGroup1 = null;
      int m = 0;
      int n = 0;
      ViewGroup viewGroup2 = paramViewGroup;
      paramViewGroup = viewGroup1;
      while (b < k) {
        FrameLayout frameLayout1;
        int i1 = paramListAdapter.getItemViewType(b);
        int i2 = n;
        if (i1 != n) {
          paramViewGroup = null;
          i2 = i1;
        } 
        viewGroup1 = viewGroup2;
        if (viewGroup2 == null)
          frameLayout1 = new FrameLayout(paramContext); 
        View view = paramListAdapter.getView(b, (View)paramViewGroup, (ViewGroup)frameLayout1);
        view.measure(i, j);
        i1 = view.getMeasuredWidth();
        if (i1 >= paramInt)
          return paramInt; 
        n = m;
        if (i1 > m)
          n = i1; 
        b++;
        m = n;
        n = i2;
        FrameLayout frameLayout2 = frameLayout1;
      } 
      return m;
    }
    
    protected static boolean shouldPreserveIconSpacing(MenuBuilder paramMenuBuilder) {
      boolean bool2;
      int i = paramMenuBuilder.size();
      boolean bool1 = false;
      byte b = 0;
      while (true) {
        bool2 = bool1;
        if (b < i) {
          MenuItem menuItem = paramMenuBuilder.getItem(b);
          if (menuItem.isVisible() && menuItem.getIcon() != null) {
            bool2 = true;
            break;
          } 
          b++;
          continue;
        } 
        break;
      } 
      return bool2;
    }
    
    protected static MenuAdapter toMenuAdapter(ListAdapter paramListAdapter) {
      return (paramListAdapter instanceof HeaderViewListAdapter) ? (MenuAdapter)((HeaderViewListAdapter)paramListAdapter).getWrappedAdapter() : (MenuAdapter)paramListAdapter;
    }
    
    public abstract void addMenu(MenuBuilder paramMenuBuilder);
    
    protected boolean closeMenuOnSubMenuOpened() {
      return true;
    }
    
    public boolean collapseItemActionView(MenuBuilder paramMenuBuilder, MenuItemImpl paramMenuItemImpl) {
      return false;
    }
    
    public boolean expandItemActionView(MenuBuilder paramMenuBuilder, MenuItemImpl paramMenuItemImpl) {
      return false;
    }
    
    public Rect getEpicenterBounds() {
      return this.mEpicenterBounds;
    }
    
    public int getId() {
      return 0;
    }
    
    public MenuView getMenuView(ViewGroup paramViewGroup) {
      throw new UnsupportedOperationException("MenuPopups manage their own views");
    }
    
    public void initForMenu(Context paramContext, MenuBuilder paramMenuBuilder) {}
    
    public void onItemClick(AdapterView<?> paramAdapterView, View paramView, int paramInt, long paramLong) {
      ListAdapter listAdapter = (ListAdapter)paramAdapterView.getAdapter();
      MenuBuilder menuBuilder = (toMenuAdapter(listAdapter)).mAdapterMenu;
      MenuItem menuItem = (MenuItem)listAdapter.getItem(paramInt);
      if (closeMenuOnSubMenuOpened()) {
        paramInt = 0;
      } else {
        paramInt = 4;
      } 
      menuBuilder.performItemAction(menuItem, this, paramInt);
    }
    
    public abstract void setAnchorView(View paramView);
    
    public void setEpicenterBounds(Rect paramRect) {
      this.mEpicenterBounds = paramRect;
    }
    
    public abstract void setForceShowIcon(boolean paramBoolean);
    
    public abstract void setGravity(int paramInt);
    
    public abstract void setHorizontalOffset(int paramInt);
    
    public abstract void setOnDismissListener(PopupWindow.OnDismissListener paramOnDismissListener);
    
    public abstract void setShowTitle(boolean paramBoolean);
    
    public abstract void setVerticalOffset(int paramInt);
  }
  
  
  /* Location:              F:\何章易\项目文件夹\项目24\va\classes_merge.jar!\android\support\v7\view\menu\MenuPopup.class
   * Java compiler version: 6 (50.0)
   * JD-Core Version:       1.1.3
   */