共用方式為


ActionBar.AddTab 方法

定義

多載

AddTab(ActionBar+Tab)
已淘汰.

新增索引標籤以用於索引標籤模式。

AddTab(ActionBar+Tab, Boolean)
已淘汰.

新增索引標籤以用於索引標籤模式。

AddTab(ActionBar+Tab, Int32)
已淘汰.

新增索引標籤以用於索引標籤模式。

AddTab(ActionBar+Tab, Int32, Boolean)
已淘汰.

新增索引標籤以用於索引標籤模式。

AddTab(ActionBar+Tab)

警告

deprecated

新增索引標籤以用於索引標籤模式。

[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

參數

tab
ActionBar.Tab

要新增的索引標籤

屬性

備註

android.app.ActionBar.addTab(android.app.Tab)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

AddTab(ActionBar+Tab, Boolean)

警告

deprecated

新增索引標籤以用於索引標籤模式。

[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

參數

tab
ActionBar.Tab

要新增的索引標籤

setSelected
Boolean

如果新增的索引標籤應該成為選取的索引標籤,則為 True。

屬性

備註

android.app.ActionBar.addTab(android.app.Tab)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

AddTab(ActionBar+Tab, Int32)

警告

deprecated

新增索引標籤以用於索引標籤模式。

[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

參數

tab
ActionBar.Tab

要新增的索引標籤

position
Int32

索引標籤的新位置

屬性

備註

android.app.ActionBar.addTab(android.app.Tab)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

AddTab(ActionBar+Tab, Int32, Boolean)

警告

deprecated

新增索引標籤以用於索引標籤模式。

[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

參數

tab
ActionBar.Tab

要新增的索引標籤

position
Int32

索引標籤的新位置

setSelected
Boolean

如果新增的索引標籤應該成為選取的索引標籤,則為 True。

屬性

備註

android.app.ActionBar.addTab(android.app.Tab)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於