public static boolean isActionViewExpanded(MenuItem menuitem) {
   if (menuitem instanceof SupportMenuItem) {
     return ((SupportMenuItem) menuitem).isActionViewExpanded();
   } else {
     return IMPL.isActionViewExpanded(menuitem);
   }
 }
 public static MenuItem setActionView(MenuItem menuitem, View view) {
   if (menuitem instanceof SupportMenuItem) {
     return ((SupportMenuItem) menuitem).setActionView(view);
   } else {
     return IMPL.setActionView(menuitem, view);
   }
 }
 public static View getActionView(MenuItem menuitem) {
   if (menuitem instanceof SupportMenuItem) {
     return ((SupportMenuItem) menuitem).getActionView();
   } else {
     return IMPL.getActionView(menuitem);
   }
 }
 public static boolean expandActionView(MenuItem menuitem) {
   if (menuitem instanceof SupportMenuItem) {
     return ((SupportMenuItem) menuitem).expandActionView();
   } else {
     return IMPL.expandActionView(menuitem);
   }
 }
 public static void setShowAsAction(MenuItem menuitem, int i) {
   if (menuitem instanceof SupportMenuItem) {
     ((SupportMenuItem) menuitem).setShowAsAction(i);
     return;
   } else {
     IMPL.setShowAsAction(menuitem, i);
     return;
   }
 }
 /**
  * Call {@link MenuItem#setShowAsAction(int) MenuItem.setShowAsAction()}. If running on a
  * pre-{@android.os.Build.VERSION_CODES#HONEYCOMB} device, does nothing and returns false.
  * Otherwise returns true.
  */
 public static boolean setShowAsAction(MenuItem item, int actionEnum) {
   return IMPL.setShowAsAction(item, actionEnum);
 }
Beispiel #7
0
 public static boolean setShowAsAction(MenuItem menuitem, int i) {
   return IMPL.setShowAsAction(menuitem, i);
 }
Beispiel #8
0
 public static boolean setShowAsAction(MenuItem paramMenuItem, int paramInt) {
   return IMPL.setShowAsAction(paramMenuItem, paramInt);
 }