DialogPreference

(SESL variant) A base class for Preferences that are dialog-based. When clicked, these preferences will open a dialog showing the actual preference controls.

Inheritors

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int, defStyleRes: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)
constructor(@NonNull context: Context)

Types

Link copied to clipboard
interface TargetFragment
Interface for PreferenceFragmentCompats to implement to allow DialogPreferences to find the preference that launched the dialog.

Functions

Link copied to clipboard
Returns the icon to be shown on subsequent dialogs.
Link copied to clipboard
Returns the layout resource that is used as the content view for subsequent dialogs.
Link copied to clipboard
Returns the message to be shown on subsequent dialogs.
Link copied to clipboard
Returns the title to be shown on subsequent dialogs.
Link copied to clipboard
Returns the text of the negative button to be shown on subsequent dialogs.
Link copied to clipboard
Returns the text of the positive button to be shown on subsequent dialogs.
Link copied to clipboard
open fun setDialogIcon(@Nullable dialogIcon: Drawable)
Sets the icon of the dialog.
open fun setDialogIcon(dialogIconRes: Int)
Sets the icon (resource ID) of the dialog.
Link copied to clipboard
open fun setDialogLayoutResource(dialogLayoutResId: Int)
Sets the layout resource that is inflated as the View to be shown as the content view of subsequent dialogs.
Link copied to clipboard
open fun setDialogMessage(dialogMessageResId: Int)

open fun setDialogMessage(@Nullable dialogMessage: CharSequence)
Sets the message of the dialog.
Link copied to clipboard
open fun setDialogTitle(dialogTitleResId: Int)

open fun setDialogTitle(@Nullable dialogTitle: CharSequence)
Sets the title of the dialog.
Link copied to clipboard
open fun setNegativeButtonText(negativeButtonTextResId: Int)

open fun setNegativeButtonText(@Nullable negativeButtonText: CharSequence)
Sets the text of the negative button of the dialog.
Link copied to clipboard
open fun setPositiveButtonText(positiveButtonTextResId: Int)

open fun setPositiveButtonText(@Nullable positiveButtonText: CharSequence)
Sets the text of the positive button of the dialog.