Share via


IMenuItem.SetActionView Method

Definition

Overloads

SetActionView(View)

Set an action view for this menu item.

SetActionView(Int32)

Set an action view for this menu item.

SetActionView(View)

Set an action view for this menu item.

[Android.Runtime.Register("setActionView", "(Landroid/view/View;)Landroid/view/MenuItem;", "GetSetActionView_Landroid_view_View_Handler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IMenuItem SetActionView (Android.Views.View? view);
[<Android.Runtime.Register("setActionView", "(Landroid/view/View;)Landroid/view/MenuItem;", "GetSetActionView_Landroid_view_View_Handler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetActionView : Android.Views.View -> Android.Views.IMenuItem

Parameters

view
View

View to use for presenting this item to the user.

Returns

This Item so additional setters can be called.

Attributes

Remarks

Set an action view for this menu item. An action view will be displayed in place of an automatically generated menu item element in the UI when this item is shown as an action within a parent.

<strong>Note:</strong> Setting an action view overrides the action provider set via #setActionProvider(ActionProvider).

Java documentation for android.view.MenuItem.setActionView(android.view.View).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to

SetActionView(Int32)

Set an action view for this menu item.

[Android.Runtime.Register("setActionView", "(I)Landroid/view/MenuItem;", "GetSetActionView_IHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IMenuItem SetActionView (int resId);
[<Android.Runtime.Register("setActionView", "(I)Landroid/view/MenuItem;", "GetSetActionView_IHandler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetActionView : int -> Android.Views.IMenuItem

Parameters

resId
Int32

Layout resource to use for presenting this item to the user.

Returns

This Item so additional setters can be called.

Attributes

Remarks

Set an action view for this menu item. An action view will be displayed in place of an automatically generated menu item element in the UI when this item is shown as an action within a parent.

<strong>Note:</strong> Setting an action view overrides the action provider set via #setActionProvider(ActionProvider).

Java documentation for android.view.MenuItem.setActionView(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

Applies to