ActionBar.AddTab Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddTab(ActionBar+Tab) |
Obsolete.
This method was deprecated in API level 21. |
| AddTab(ActionBar+Tab, Boolean) |
Obsolete.
This method was deprecated in API level 21. |
| AddTab(ActionBar+Tab, Int32) |
Obsolete.
This method was deprecated in API level 21. |
| AddTab(ActionBar+Tab, Int32, Boolean) |
Obsolete.
This method was deprecated in API level 21. |
AddTab(ActionBar+Tab)
Caution
deprecated
This method was deprecated in API level 21.
[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
ActionBar.Tab: Tab to add
- 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.
Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list. If this is the first tab to be added it will become the selected tab.
Android reference for android.app.ActionBar.addTab.
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
This method was deprecated in API level 21.
[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
ActionBar.Tab: Tab to add
- setSelected
- Boolean
boolean: True if the added tab should become the selected 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.
Add a tab for use in tabbed navigation mode. The tab will be added at the end of the list.
Android reference for android.app.ActionBar.addTab.
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
This method was deprecated in API level 21.
[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
ActionBar.Tab: The tab to add
- position
- Int32
int: The new position of the 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.
Add a tab for use in tabbed navigation mode. The tab will be inserted at position. If this is the first tab to be added it will become the selected tab.
Android reference for android.app.ActionBar.addTab.
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
This method was deprecated in API level 21.
[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
ActionBar.Tab: The tab to add
- position
- Int32
int: The new position of the tab
- setSelected
- Boolean
boolean: True if the added tab should become the selected 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.
Add a tab for use in tabbed navigation mode. The tab will be insterted at position.
Android reference for android.app.ActionBar.addTab.
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.