Android Guides | Samples

Android.App.ActionBar.Tab.SetTabListener Method

Set the ActionBar+ITabListener that will handle switching to and from this tab.

Syntax

[Android.Runtime.Register("setTabListener", "(Landroid/app/ActionBar$TabListener;)Landroid/app/ActionBar$Tab;", "GetSetTabListener_Landroid_app_ActionBar_TabListener_Handler")]
public abstract ActionBar+Tab SetTabListener (ActionBar+ITabListener listener)

Parameters

listener
Listener to handle tab selection events

Remarks

Set the ActionBar+ITabListener that will handle switching to and from this tab. All tabs must have a TabListener set before being added to the ActionBar.

[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