public boolean hasCollapsibleActionView() {
   if ((mShowAsAction & SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW) != 0) {
     if (mActionView == null && mActionProvider != null) {
       mActionView = mActionProvider.onCreateActionView(this);
     }
     return mActionView != null;
   }
   return false;
 }
Ejemplo n.º 2
0
 public View getActionView() {
   if (mActionView != null) {
     return mActionView;
   } else if (mActionProvider != null) {
     mActionView = mActionProvider.onCreateActionView();
     return mActionView;
   } else {
     return null;
   }
 }