FileDocCategorySizeDatePackage
MenuCompat.javaAPI DocAndroid 5.1 API1238Thu Mar 12 22:22:56 GMT 2015android.support.v4.view

MenuCompat

public class MenuCompat extends Object
Helper for accessing features in {@link android.view.Menu} introduced after API level 4 in a backwards compatible fashion.

Fields Summary
Constructors Summary
Methods Summary
public static voidsetShowAsAction(android.view.MenuItem item, int actionEnum)
Call {@link MenuItem#setShowAsAction(int) MenuItem.setShowAsAction()}.

deprecated
Use {@link MenuItemCompat#setShowAsAction(MenuItem, int) MenuItemCompat.setShowAsAction(MenuItem, int)}

        MenuItemCompat.setShowAsAction(item, actionEnum);