ISubMenu.SetHeaderIcon Method

Definition

Overloads

SetHeaderIcon(Drawable)

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

SetHeaderIcon(Int32)

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

SetHeaderIcon(Drawable)

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

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

Parameters

icon
Drawable

The Drawable used for the icon.

Returns

This SubMenu so additional setters can be called.

Attributes

Remarks

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

Java documentation for android.view.SubMenu.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 submenu header's icon to the icon given in <var>iconRes</var> resource id.

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

Parameters

iconRes
Int32

The resource identifier used for the icon.

Returns

This SubMenu so additional setters can be called.

Attributes

Remarks

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

Java documentation for android.view.SubMenu.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