Android.Views.ActionProvider.OnCreateActionView Method
Factory method called by the Android framework to create new action views.

Syntax

[Android.Runtime.Register("onCreateActionView", "(Landroid/view/MenuItem;)Landroid/view/View;", "GetOnCreateActionView_Landroid_view_MenuItem_Handler")]
public virtual View OnCreateActionView (IMenuItem forItem)

Parameters

forItem
MenuItem to create the action view for

Returns

Documentation for this section has not yet been entered.

Remarks

Factory method called by the Android framework to create new action views. This method returns a new action view for the given MenuItem.

If your ActionProvider implementation overrides the deprecated no-argument overload ActionProvider.OnCreateActionView, overriding this method for devices running API 16 or later is recommended but optional. The default implementation calls ActionProvider.OnCreateActionView for compatibility with applications written for older platform versions.

[Android Documentation]

Requirements

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