Udostępnij za pośrednictwem


Toast.SetText Method

Definition

Overloads

SetText(ICharSequence)

Update the text in a Toast that was previously created using one of the makeText() methods.

SetText(Int32)

Update the text in a Toast that was previously created using one of the makeText() methods.

SetText(String)

Update the text in a Toast that was previously created using one of the makeText() methods.

SetText(ICharSequence)

Update the text in a Toast that was previously created using one of the makeText() methods.

[Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;)V", "GetSetText_Ljava_lang_CharSequence_Handler")]
public virtual void SetText (Java.Lang.ICharSequence? s);
[<Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;)V", "GetSetText_Ljava_lang_CharSequence_Handler")>]
abstract member SetText : Java.Lang.ICharSequence -> unit
override this.SetText : Java.Lang.ICharSequence -> unit

Parameters

s
ICharSequence

The new text for the Toast.

Attributes

Remarks

Update the text in a Toast that was previously created using one of the makeText() methods.

Java documentation for android.widget.Toast.setText(java.lang.CharSequence).

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)

Update the text in a Toast that was previously created using one of the makeText() methods.

[Android.Runtime.Register("setText", "(I)V", "GetSetText_IHandler")]
public virtual void SetText (int resId);
[<Android.Runtime.Register("setText", "(I)V", "GetSetText_IHandler")>]
abstract member SetText : int -> unit
override this.SetText : int -> unit

Parameters

resId
Int32

The new text for the Toast.

Attributes

Remarks

Update the text in a Toast that was previously created using one of the makeText() methods.

Java documentation for android.widget.Toast.setText(int).

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)

Update the text in a Toast that was previously created using one of the makeText() methods.

public void SetText (string? s);
member this.SetText : string -> unit

Parameters

s
String

The new text for the Toast.

Remarks

Update the text in a Toast that was previously created using one of the makeText() methods.

Java documentation for android.widget.Toast.setText(java.lang.CharSequence).

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