Partager via


DialogPreference.DialogMessageFormatted Property

Definition

Returns the message to be shown on subsequent dialogs. -or- Sets the message of the dialog.

public virtual Java.Lang.ICharSequence? DialogMessageFormatted { [Android.Runtime.Register("getDialogMessage", "()Ljava/lang/CharSequence;", "GetGetDialogMessageHandler")] get; [Android.Runtime.Register("setDialogMessage", "(Ljava/lang/CharSequence;)V", "GetSetDialogMessage_Ljava_lang_CharSequence_Handler")] set; }
[<get: Android.Runtime.Register("getDialogMessage", "()Ljava/lang/CharSequence;", "GetGetDialogMessageHandler")>]
[<set: Android.Runtime.Register("setDialogMessage", "(Ljava/lang/CharSequence;)V", "GetSetDialogMessage_Ljava_lang_CharSequence_Handler")>]
member this.DialogMessageFormatted : Java.Lang.ICharSequence with get, set

Property Value

The message.

Attributes

Remarks

Property getter documentation:

Returns the message to be shown on subsequent dialogs.

Java documentation for android.preference.DialogPreference.getDialogMessage().

Property setter documentation:

Sets the message of the dialog. This will be shown on subsequent dialogs.

This message forms the content View of the dialog and conflicts with list-based dialogs, for example. If setting a custom View on a dialog via #setDialogLayoutResource(int), include a text View with ID android.R.id#message and it will be populated with this message.

Java documentation for android.preference.DialogPreference.setDialogMessage(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