語言

Toast.SetText 方法

定義

多載

名稱 Description
SetText(ICharSequence)

更新先前使用 makeText() 方法建立的吐司中的文字。

SetText(Int32)

更新先前使用 makeText() 方法建立的吐司中的文字。

SetText(String)

更新先前使用 makeText() 方法建立的吐司中的文字。

SetText(ICharSequence)

更新先前使用 makeText() 方法建立的吐司中的文字。

[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

參數

s
ICharSequence

祝酒詞的新文字。

屬性

備註

更新先前使用 makeText() 方法建立的吐司中的文字。

Java 文件 android.widget.Toast.setText(java.lang.CharSequence)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SetText(Int32)

更新先前使用 makeText() 方法建立的吐司中的文字。

[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

參數

resId
Int32

祝酒詞的新文字。

屬性

備註

更新先前使用 makeText() 方法建立的吐司中的文字。

Java 文件 android.widget.Toast.setText(int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

SetText(String)

更新先前使用 makeText() 方法建立的吐司中的文字。

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

參數

s
String

祝酒詞的新文字。

備註

更新先前使用 makeText() 方法建立的吐司中的文字。

Java 文件 android.widget.Toast.setText(java.lang.CharSequence)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於