Toolbar.SetOnMenuItemClickListener(Toolbar+IOnMenuItemClickListener) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set a listener to respond to menu item click events.
[Android.Runtime.Register("setOnMenuItemClickListener", "(Landroid/widget/Toolbar$OnMenuItemClickListener;)V", "GetSetOnMenuItemClickListener_Landroid_widget_Toolbar_OnMenuItemClickListener_Handler")]
public virtual void SetOnMenuItemClickListener (Android.Widget.Toolbar.IOnMenuItemClickListener? listener);
[<Android.Runtime.Register("setOnMenuItemClickListener", "(Landroid/widget/Toolbar$OnMenuItemClickListener;)V", "GetSetOnMenuItemClickListener_Landroid_widget_Toolbar_OnMenuItemClickListener_Handler")>]
abstract member SetOnMenuItemClickListener : Android.Widget.Toolbar.IOnMenuItemClickListener -> unit
override this.SetOnMenuItemClickListener : Android.Widget.Toolbar.IOnMenuItemClickListener -> unit
Parameters
- listener
- Toolbar.IOnMenuItemClickListener
Listener to set
- Attributes
Remarks
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.