DialogPreference
abstract class DialogPreference : Preference
kotlin.Any | ||
↳ | androidx.preference.Preference | |
↳ | androidx.preference.DialogPreference |
A base class for Preference
s that are dialog-based. When clicked, these preferences will open a dialog showing the actual preference controls.
Summary
Nested classes | |
---|---|
abstract |
Interface for |
Inherited constants | |
---|---|
Public constructors | |
---|---|
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int) |
|
<init>(context: Context!, attrs: AttributeSet!, defStyleAttr: Int) |
|
<init>(context: Context!, attrs: AttributeSet!) |
|
Public methods | |
---|---|
open Drawable! |
Returns the icon to be shown on subsequent dialogs. |
open Int |
Returns the layout resource that is used as the content view for subsequent dialogs. |
open CharSequence! |
Returns the message to be shown on subsequent dialogs. |
open CharSequence! |
Returns the title to be shown on subsequent dialogs. |
open CharSequence! |
Returns the text of the negative button to be shown on subsequent dialogs. |
open CharSequence! |
Returns the text of the positive button to be shown on subsequent dialogs. |
open Unit |
setDialogIcon(dialogIcon: Drawable!) Sets the icon of the dialog. |
open Unit |
setDialogIcon(dialogIconRes: Int) Sets the icon (resource ID) of the dialog. |
open Unit |
setDialogLayoutResource(dialogLayoutResId: Int) Sets the layout resource that is inflated as the |
open Unit |
setDialogMessage(dialogMessage: CharSequence!) Sets the message of the dialog. |
open Unit |
setDialogMessage(dialogMessageResId: Int) |
open Unit |
setDialogTitle(dialogTitle: CharSequence!) Sets the title of the dialog. |
open Unit |
setDialogTitle(dialogTitleResId: Int) |
open Unit |
setNegativeButtonText(negativeButtonText: CharSequence!) Sets the text of the negative button of the dialog. |
open Unit |
setNegativeButtonText(negativeButtonTextResId: Int) |
open Unit |
setPositiveButtonText(positiveButtonText: CharSequence!) Sets the text of the positive button of the dialog. |
open Unit |
setPositiveButtonText(positiveButtonTextResId: Int) |
Protected methods | |
---|---|