次の方法で共有


ListFragment.SetEmptyText Method

Definition

Overloads

SetEmptyText(ICharSequence)

The default content for a ListFragment has a TextView that can be shown when the list is empty.

SetEmptyText(String)

The default content for a ListFragment has a TextView that can be shown when the list is empty.

SetEmptyText(ICharSequence)

The default content for a ListFragment has a TextView that can be shown when the list is empty.

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

Parameters

Attributes

Remarks

The default content for a ListFragment has a TextView that can be shown when the list is empty. If you would like to have it shown, call this method to supply the text it should use.

Java documentation for android.app.ListFragment.setEmptyText(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

SetEmptyText(String)

The default content for a ListFragment has a TextView that can be shown when the list is empty.

public void SetEmptyText (string? text);
member this.SetEmptyText : string -> unit

Parameters

text
String

Remarks

The default content for a ListFragment has a TextView that can be shown when the list is empty. If you would like to have it shown, call this method to supply the text it should use.

Java documentation for android.app.ListFragment.setEmptyText(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