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

Syntax

[Android.Runtime.Register("setShowAsAction", "(I)V", "GetSetShowAsAction_IHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetShowAsAction ([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.

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.

[Android Documentation]

Requirements

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