Język

ActionBar.Tab.SetText Method

Definition

Overloads

Name Description
SetText(ICharSequence)
Obsolete.

Set the text displayed on this tab.

SetText(Int32)
Obsolete.

Set the text displayed on this tab.

SetText(String)
Obsolete.

Set the text displayed on this tab.

SetText(ICharSequence)

Caution

deprecated

Set the text displayed on this tab.

[Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;)Landroid/app/ActionBar$Tab;", "GetSetText_Ljava_lang_CharSequence_Handler")]
[System.Obsolete("deprecated")]
public abstract Android.App.ActionBar.Tab SetText(Java.Lang.ICharSequence text);
[<Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;)Landroid/app/ActionBar$Tab;", "GetSetText_Ljava_lang_CharSequence_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member SetText : Java.Lang.ICharSequence -> Android.App.ActionBar.Tab

Parameters

text
ICharSequence

CharSequence: The text to display

Returns

The current instance for call chaining

Attributes

Remarks

Set the text displayed on this tab. Text may be truncated if there is not room to display the entire string.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.ActionBar.Tab.setText.

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

SetText(Int32)

Caution

deprecated

Set the text displayed on this tab.

[Android.Runtime.Register("setText", "(I)Landroid/app/ActionBar$Tab;", "GetSetText_IHandler")]
[System.Obsolete("deprecated")]
public abstract Android.App.ActionBar.Tab SetText(int resId);
[<Android.Runtime.Register("setText", "(I)Landroid/app/ActionBar$Tab;", "GetSetText_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetText : int -> Android.App.ActionBar.Tab

Parameters

resId
Int32

int: A resource ID referring to the text that should be displayed

Returns

The current instance for call chaining

Attributes

Remarks

Set the text displayed on this tab. Text may be truncated if there is not room to display the entire string.

Android reference for android.app.ActionBar.Tab.setText.

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

SetText(String)

Caution

deprecated

Set the text displayed on this tab.

[System.Obsolete("deprecated")]
public Android.App.ActionBar.Tab SetText(string text);
[<System.Obsolete("deprecated")>]
member this.SetText : string -> Android.App.ActionBar.Tab

Parameters

text
String

CharSequence: The text to display

Returns

The current instance for call chaining

Attributes

Remarks

Set the text displayed on this tab. Text may be truncated if there is not room to display the entire string.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

Android reference for android.app.ActionBar.Tab.setText.

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