Android Guides | Samples

Android.App.ActionBar.Tab.SetIcon Method

Set the icon displayed on this tab.

Syntax

[Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)Landroid/app/ActionBar$Tab;", "GetSetIcon_Landroid_graphics_drawable_Drawable_Handler")]
public abstract ActionBar+Tab SetIcon (Drawable icon)

Parameters

icon
The drawable to use as an icon

Remarks

Set the icon displayed on this tab.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11