예제 #1
0
 public boolean expandActionView()
 {
     while ((mShowAsAction & 8) == 0 || mActionView == null || mOnActionExpandListener != null && !mOnActionExpandListener.onMenuItemActionExpand(this)) 
     {
         return false;
     }
     return mMenu.expandItemActionView(this);
 }
예제 #2
0
  @Override
  public boolean expandActionView() {
    if ((mShowAsAction & SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW) == 0 || mActionView == null) {
      return false;
    }

    if (mOnActionExpandListener == null || mOnActionExpandListener.onMenuItemActionExpand(this)) {
      return mMenu.expandItemActionView(this);
    }

    return false;
  }