次の方法で共有


ActionProvider.OnCreateActionView Method

Definition

Overloads

OnCreateActionView()
Obsolete.

Factory method called by the Android framework to create new action views.

OnCreateActionView(IMenuItem)

Factory method called by the Android framework to create new action views.

OnCreateActionView()

Caution

deprecated

Factory method called by the Android framework to create new action views.

[Android.Runtime.Register("onCreateActionView", "()Landroid/view/View;", "GetOnCreateActionViewHandler")]
[System.Obsolete("deprecated")]
public abstract Android.Views.View OnCreateActionView ();
[<Android.Runtime.Register("onCreateActionView", "()Landroid/view/View;", "GetOnCreateActionViewHandler")>]
[<System.Obsolete("deprecated")>]
abstract member OnCreateActionView : unit -> Android.Views.View

Returns

A new action view.

Attributes

Remarks

Factory method called by the Android framework to create new action views.

This method has been deprecated in favor of #onCreateActionView(MenuItem). Newer apps that wish to support platform versions prior to API 16 should also implement this method to return a valid action view.

This member is deprecated. use #onCreateActionView(MenuItem)

Java documentation for android.view.ActionProvider.onCreateActionView().

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

OnCreateActionView(IMenuItem)

Factory method called by the Android framework to create new action views.

[Android.Runtime.Register("onCreateActionView", "(Landroid/view/MenuItem;)Landroid/view/View;", "GetOnCreateActionView_Landroid_view_MenuItem_Handler")]
public virtual Android.Views.View OnCreateActionView (Android.Views.IMenuItem forItem);
[<Android.Runtime.Register("onCreateActionView", "(Landroid/view/MenuItem;)Landroid/view/View;", "GetOnCreateActionView_Landroid_view_MenuItem_Handler")>]
abstract member OnCreateActionView : Android.Views.IMenuItem -> Android.Views.View
override this.OnCreateActionView : Android.Views.IMenuItem -> Android.Views.View

Parameters

forItem
IMenuItem

MenuItem to create the action view for

Returns

the new action view

Attributes

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 #onCreateActionView(), overriding this method for devices running API 16 or later is recommended but optional. The default implementation calls #onCreateActionView() for compatibility with applications written for older platform versions.

Java documentation for android.view.ActionProvider.onCreateActionView(android.view.MenuItem).

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