Udostępnij za pośrednictwem


ActionBar.AddTab Method

Definition

Overloads

AddTab(ActionBar+Tab)
Obsolete.

Add a tab for use in tabbed navigation mode.

AddTab(ActionBar+Tab, Boolean)
Obsolete.

Add a tab for use in tabbed navigation mode.

AddTab(ActionBar+Tab, Int32)
Obsolete.

Add a tab for use in tabbed navigation mode.

AddTab(ActionBar+Tab, Int32, Boolean)
Obsolete.

Add a tab for use in tabbed navigation mode.

AddTab(ActionBar+Tab)

Caution

deprecated

Add a tab for use in tabbed navigation mode.

[Android.Runtime.Register("addTab", "(Landroid/app/ActionBar$Tab;)V", "GetAddTab_Landroid_app_ActionBar_Tab_Handler")]
[System.Obsolete("deprecated")]
public abstract void AddTab (Android.App.ActionBar.Tab? tab);
[<Android.Runtime.Register("addTab", "(Landroid/app/ActionBar$Tab;)V", "GetAddTab_Landroid_app_ActionBar_Tab_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member AddTab : Android.App.ActionBar.Tab -> unit

Parameters

tab
ActionBar.Tab

Tab to add

Attributes

Remarks

Java documentation for android.app.ActionBar.addTab(android.app.Tab).

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

AddTab(ActionBar+Tab, Boolean)

Caution

deprecated

Add a tab for use in tabbed navigation mode.

[Android.Runtime.Register("addTab", "(Landroid/app/ActionBar$Tab;Z)V", "GetAddTab_Landroid_app_ActionBar_Tab_ZHandler")]
[System.Obsolete("deprecated")]
public abstract void AddTab (Android.App.ActionBar.Tab? tab, bool setSelected);
[<Android.Runtime.Register("addTab", "(Landroid/app/ActionBar$Tab;Z)V", "GetAddTab_Landroid_app_ActionBar_Tab_ZHandler")>]
[<System.Obsolete("deprecated")>]
abstract member AddTab : Android.App.ActionBar.Tab * bool -> unit

Parameters

tab
ActionBar.Tab

Tab to add

setSelected
Boolean

True if the added tab should become the selected tab.

Attributes

Remarks

Java documentation for android.app.ActionBar.addTab(android.app.Tab).

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

AddTab(ActionBar+Tab, Int32)

Caution

deprecated

Add a tab for use in tabbed navigation mode.

[Android.Runtime.Register("addTab", "(Landroid/app/ActionBar$Tab;I)V", "GetAddTab_Landroid_app_ActionBar_Tab_IHandler")]
[System.Obsolete("deprecated")]
public abstract void AddTab (Android.App.ActionBar.Tab? tab, int position);
[<Android.Runtime.Register("addTab", "(Landroid/app/ActionBar$Tab;I)V", "GetAddTab_Landroid_app_ActionBar_Tab_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member AddTab : Android.App.ActionBar.Tab * int -> unit

Parameters

tab
ActionBar.Tab

Tab to add

position
Int32

The new position of the tab

Attributes

Remarks

Java documentation for android.app.ActionBar.addTab(android.app.Tab).

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

AddTab(ActionBar+Tab, Int32, Boolean)

Caution

deprecated

Add a tab for use in tabbed navigation mode.

[Android.Runtime.Register("addTab", "(Landroid/app/ActionBar$Tab;IZ)V", "GetAddTab_Landroid_app_ActionBar_Tab_IZHandler")]
[System.Obsolete("deprecated")]
public abstract void AddTab (Android.App.ActionBar.Tab? tab, int position, bool setSelected);
[<Android.Runtime.Register("addTab", "(Landroid/app/ActionBar$Tab;IZ)V", "GetAddTab_Landroid_app_ActionBar_Tab_IZHandler")>]
[<System.Obsolete("deprecated")>]
abstract member AddTab : Android.App.ActionBar.Tab * int * bool -> unit

Parameters

tab
ActionBar.Tab

Tab to add

position
Int32

The new position of the tab

setSelected
Boolean

True if the added tab should become the selected tab.

Attributes

Remarks

Java documentation for android.app.ActionBar.addTab(android.app.Tab).

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