Share via


IMenuItem.SetOnActionExpandListener(IMenuItemOnActionExpandListener) Method

Definition

Set an OnActionExpandListener on this menu item to be notified when the associated action view is expanded or collapsed.

[Android.Runtime.Register("setOnActionExpandListener", "(Landroid/view/MenuItem$OnActionExpandListener;)Landroid/view/MenuItem;", "GetSetOnActionExpandListener_Landroid_view_MenuItem_OnActionExpandListener_Handler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IMenuItem SetOnActionExpandListener (Android.Views.IMenuItemOnActionExpandListener? listener);
[<Android.Runtime.Register("setOnActionExpandListener", "(Landroid/view/MenuItem$OnActionExpandListener;)Landroid/view/MenuItem;", "GetSetOnActionExpandListener_Landroid_view_MenuItem_OnActionExpandListener_Handler:Android.Views.IMenuItemInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetOnActionExpandListener : Android.Views.IMenuItemOnActionExpandListener -> Android.Views.IMenuItem

Parameters

listener
IMenuItemOnActionExpandListener

Listener that will respond to expand/collapse events

Returns

This menu item instance for call chaining

Attributes

Remarks

Java documentation for android.view.MenuItem.setOnActionExpandListener(android.view.OnActionExpandListener).

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.

Applies to