Udostępnij za pośrednictwem


IContextMenu.SetHeaderView(View) Method

Definition

Sets the header of the context menu to the View given in <var>view</var>.

[Android.Runtime.Register("setHeaderView", "(Landroid/view/View;)Landroid/view/ContextMenu;", "GetSetHeaderView_Landroid_view_View_Handler:Android.Views.IContextMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IContextMenu? SetHeaderView (Android.Views.View? view);
[<Android.Runtime.Register("setHeaderView", "(Landroid/view/View;)Landroid/view/ContextMenu;", "GetSetHeaderView_Landroid_view_View_Handler:Android.Views.IContextMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetHeaderView : Android.Views.View -> Android.Views.IContextMenu

Parameters

view
View

The View used for the header.

Returns

This ContextMenu so additional setters can be called.

Attributes

Remarks

Sets the header of the context menu to the View given in <var>view</var>. This replaces the header title and icon (and those replace this).

Java documentation for android.view.ContextMenu.setHeaderView(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.

Applies to