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

? Examples
MenuCompat()
Public Methods

? Examples
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.

No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.