Share via


IContextMenu.SetHeaderIcon Method

Definition

Overloads

SetHeaderIcon(Drawable)

Sets the context menu header's icon to the icon given in <var>icon</var> Drawable.

SetHeaderIcon(Int32)

Sets the context menu header's icon to the icon given in <var>iconRes</var> resource id.

SetHeaderIcon(Drawable)

Sets the context menu header's icon to the icon given in <var>icon</var> Drawable.

[Android.Runtime.Register("setHeaderIcon", "(Landroid/graphics/drawable/Drawable;)Landroid/view/ContextMenu;", "GetSetHeaderIcon_Landroid_graphics_drawable_Drawable_Handler:Android.Views.IContextMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IContextMenu? SetHeaderIcon (Android.Graphics.Drawables.Drawable? icon);
[<Android.Runtime.Register("setHeaderIcon", "(Landroid/graphics/drawable/Drawable;)Landroid/view/ContextMenu;", "GetSetHeaderIcon_Landroid_graphics_drawable_Drawable_Handler:Android.Views.IContextMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetHeaderIcon : Android.Graphics.Drawables.Drawable -> Android.Views.IContextMenu

Parameters

icon
Drawable

The Drawable used for the icon.

Returns

This ContextMenu so additional setters can be called.

Attributes

Remarks

Sets the context menu header's icon to the icon given in <var>icon</var> Drawable.

Java documentation for android.view.ContextMenu.setHeaderIcon(android.graphics.drawable.Drawable).

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

SetHeaderIcon(Int32)

Sets the context menu header's icon to the icon given in <var>iconRes</var> resource id.

[Android.Runtime.Register("setHeaderIcon", "(I)Landroid/view/ContextMenu;", "GetSetHeaderIcon_IHandler:Android.Views.IContextMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Views.IContextMenu? SetHeaderIcon (int iconRes);
[<Android.Runtime.Register("setHeaderIcon", "(I)Landroid/view/ContextMenu;", "GetSetHeaderIcon_IHandler:Android.Views.IContextMenuInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetHeaderIcon : int -> Android.Views.IContextMenu

Parameters

iconRes
Int32

The resource identifier used for the icon.

Returns

This ContextMenu so additional setters can be called.

Attributes

Remarks

Sets the context menu header's icon to the icon given in <var>iconRes</var> resource id.

Java documentation for android.view.ContextMenu.setHeaderIcon(int).

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