Android.Views.IMenuItem.SetShowAsActionFlags Method
Sets how this item should display in the presence of an Action Bar.

Syntax

[Android.Runtime.Register("setShowAsActionFlags", "(I)Landroid/view/MenuItem;", "GetSetShowAsActionFlags_IHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public IMenuItem SetShowAsActionFlags ([Android.Runtime.GeneratedEnum] ShowAsAction actionEnum)

See Also

Android.App.ActionBar
IMenuItem.SetActionView(View)

Parameters

actionEnum
How the item should display. One of IMenuItem.SHOW_AS_ACTION_ALWAYS, IMenuItem.SHOW_AS_ACTION_IF_ROOM, or IMenuItem.SHOW_AS_ACTION_NEVER. SHOW_AS_ACTION_NEVER is the default.

Returns

Documentation for this section has not yet been entered.

Remarks

Sets how this item should display in the presence of an Action Bar. The parameter actionEnum is a flag set. One of IMenuItem.SHOW_AS_ACTION_ALWAYS, IMenuItem.SHOW_AS_ACTION_IF_ROOM, or IMenuItem.SHOW_AS_ACTION_NEVER should be used, and you may optionally OR the value with IMenuItem.SHOW_AS_ACTION_WITH_TEXT. SHOW_AS_ACTION_WITH_TEXT requests that when the item is shown as an action, it should be shown with a text label.

Note: This method differs from IMenuItem.SetShowAsAction(ShowAsAction) only in that it returns the current MenuItem instance for call chaining.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 14