Lingua

ActionBar.NewTab Method

Definition

Caution

deprecated

This method was deprecated in API level 21.

[Android.Runtime.Register("newTab", "()Landroid/app/ActionBar$Tab;", "GetNewTabHandler")]
[System.Obsolete("deprecated")]
public abstract Android.App.ActionBar.Tab? NewTab();
[<Android.Runtime.Register("newTab", "()Landroid/app/ActionBar$Tab;", "GetNewTabHandler")>]
[<System.Obsolete("deprecated")>]
abstract member NewTab : unit -> Android.App.ActionBar.Tab

Returns

A new Tab

Attributes

Remarks

This method was deprecated in API level 21. Action bar navigation modes are deprecated and not supported by inline toolbar action bars. Consider using other common navigation patterns instead.

Create and return a new Tab. This tab will not be included in the action bar until it is added. Very often tabs will be used to switch between Fragment objects. Here is a typical implementation of such tabs:

See also:

Android reference for android.app.ActionBar.newTab.

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