Język

ActionBar.Tab.SetIcon Method

Definition

Overloads

Name Description
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

Drawable: The drawable to use as an icon

Returns

The current instance for call chaining

Attributes

Remarks

Set the icon displayed on this tab.

Android reference for android.app.ActionBar.Tab.setIcon.

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

int: Resource ID referring to the drawable to use as an icon

Returns

The current instance for call chaining

Attributes

Remarks

Set the icon displayed on this tab.

Android reference for android.app.ActionBar.Tab.setIcon.

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