Java android.support.v4.view MenuItemCompat fields, constructors, methods, implement or subclass

Example usage for Java android.support.v4.view MenuItemCompat fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.support.v4.view MenuItemCompat.

The text is from its open source code.

Field

intSHOW_AS_ACTION_NEVER
Never show this item as a button in an Action Bar.
intSHOW_AS_ACTION_IF_ROOM
Show this item as a button in an Action Bar if the system decides there is room for it.
intSHOW_AS_ACTION_ALWAYS
Always show this item as a button in an Action Bar.
intSHOW_AS_ACTION_WITH_TEXT
When this item is in the action bar, always show it with a text label even if it also has an icon specified.
intSHOW_AS_ACTION_COLLAPSE_ACTION_VIEW
This item's action view collapses to a normal menu item.

Method

MenuItemsetActionView(MenuItem item, View view)
Set an action view for this menu item.
booleansetShowAsAction(MenuItem item, int actionEnum)
Call MenuItem#setShowAsAction(int) MenuItem.setShowAsAction() .