다음을 통해 공유


ISubMenu.SetIcon Method

Definition

Overloads

SetIcon(Drawable)

Change the icon associated with this submenu's item in its parent menu.

SetIcon(Int32)

Change the icon associated with this submenu's item in its parent menu.

SetIcon(Drawable)

Change the icon associated with this submenu's item in its parent menu.

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

Parameters

icon
Drawable

The new icon (as a Drawable) to be displayed.

Returns

This SubMenu so additional setters can be called.

Attributes

Remarks

Change the icon associated with this submenu's item in its parent menu.

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

See also

Applies to

SetIcon(Int32)

Change the icon associated with this submenu's item in its parent menu.

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

Parameters

iconRes
Int32

The new icon (as a resource ID) to be displayed.

Returns

This SubMenu so additional setters can be called.

Attributes

Remarks

Change the icon associated with this submenu's item in its parent menu.

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

See also

Applies to