Condividi tramite


ActionBar.Tab.SetIcon Method

Definition

Overloads

SetIcon(Drawable)
Obsolete.

Set the icon displayed on this tab.

SetIcon(Int32)
Obsolete.

Set the icon displayed on this tab.

SetIcon(Drawable)

Caution

deprecated

Set the icon displayed on this tab.

[Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)Landroid/app/ActionBar$Tab;", "GetSetIcon_Landroid_graphics_drawable_Drawable_Handler")]
[System.Obsolete("deprecated")]
public abstract Android.App.ActionBar.Tab SetIcon (Android.Graphics.Drawables.Drawable icon);
[<Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)Landroid/app/ActionBar$Tab;", "GetSetIcon_Landroid_graphics_drawable_Drawable_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetIcon : Android.Graphics.Drawables.Drawable -> Android.App.ActionBar.Tab

Parameters

icon
Drawable

The drawable to use as an icon

Returns

Attributes

Remarks

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

SetIcon(Int32)

Caution

deprecated

Set the icon displayed on this tab.

[Android.Runtime.Register("setIcon", "(I)Landroid/app/ActionBar$Tab;", "GetSetIcon_IHandler")]
[System.Obsolete("deprecated")]
public abstract Android.App.ActionBar.Tab SetIcon (int resId);
[<Android.Runtime.Register("setIcon", "(I)Landroid/app/ActionBar$Tab;", "GetSetIcon_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetIcon : int -> Android.App.ActionBar.Tab

Parameters

resId
Int32

Resource ID referring to the drawable to use as an icon

Returns

Attributes

Remarks

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