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 was deprecated in API level 22.0.0. Use setShowAsAction(int) directly.

Inherited methods

From class java.lang.Object

Public methods

setShowAsAction

added in version 22.0.0
void setShowAsAction (MenuItem item, 
                int actionEnum)

This method was deprecated in API level 22.0.0.
Use setShowAsAction(int) directly.

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.

Take a one-minute survey?
Help us improve Android tools and documentation.