to top
Android APIs
public class

MenuCompat

extends Object
java.lang.Object
   ↳ android.support.v4.view.MenuCompat

Class Overview

Helper for accessing features in Menu introduced after API level 4 in a backwards compatible fashion.

Summary

Public Constructors
MenuCompat()
Public Methods
static boolean setShowAsAction(MenuItem item, int actionEnum)
This method was deprecated in API level . Use MenuItemCompat.setShowAsAction(MenuItem, int)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MenuCompat ()

Public Methods

public static boolean setShowAsAction (MenuItem item, int actionEnum)

This method was deprecated in API level .
Use MenuItemCompat.setShowAsAction(MenuItem, int)

Call MenuItem.setShowAsAction(). If running on a pre-HONEYCOMB device, does nothing and returns false. Otherwise returns true.