Share via


ActionBar.ITabListener.OnTabSelected Method

Definition

Caution

deprecated

Called when a tab enters the selected state.

[Android.Runtime.Register("onTabSelected", "(Landroid/app/ActionBar$Tab;Landroid/app/FragmentTransaction;)V", "GetOnTabSelected_Landroid_app_ActionBar_Tab_Landroid_app_FragmentTransaction_Handler:Android.App.ActionBar/ITabListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
[System.Obsolete("deprecated")]
public void OnTabSelected (Android.App.ActionBar.Tab? tab, Android.App.FragmentTransaction? ft);
[<Android.Runtime.Register("onTabSelected", "(Landroid/app/ActionBar$Tab;Landroid/app/FragmentTransaction;)V", "GetOnTabSelected_Landroid_app_ActionBar_Tab_Landroid_app_FragmentTransaction_Handler:Android.App.ActionBar/ITabListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<System.Obsolete("deprecated")>]
abstract member OnTabSelected : Android.App.ActionBar.Tab * Android.App.FragmentTransaction -> unit

Parameters

tab
ActionBar.Tab

The tab that was selected

ft
FragmentTransaction

A FragmentTransaction for queuing fragment operations to execute during a tab switch. The previous tab's unselect and this tab's select will be executed in a single transaction. This FragmentTransaction does not support being added to the back stack.

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