Skip to content

Most visited

Recently visited

navigation

MenuCompat

public final class MenuCompat
extends Object

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


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

Summary

Public methods

static void setShowAsAction(MenuItem item, int actionEnum)

This method is deprecated. Use MenuItemCompat.setShowAsAction(MenuItem, int)

Inherited methods

From class java.lang.Object

Public methods

setShowAsAction

void setShowAsAction (MenuItem item, 
                int actionEnum)

This method is deprecated.
Use MenuItemCompat.setShowAsAction(MenuItem, int)

Call MenuItem.setShowAsAction().

Parameters
item MenuItem
actionEnum int
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.