Builder
open class Builder
kotlin.Any | |
↳ | androidx.appcompat.app.AlertDialog.Builder |
Summary
Public constructors | |
---|---|
Creates a builder for an alert dialog that uses the default alert dialog theme. |
|
Creates a builder for an alert dialog that uses an explicit theme resource. |
Public methods | |
---|---|
open AlertDialog |
create() Creates an |
open Context |
Returns a |
open AlertDialog.Builder! |
setAdapter(adapter: ListAdapter!, listener: OnClickListener!) Set a list of items, which are supplied by the given |
open AlertDialog.Builder! |
setCancelable(cancelable: Boolean) Sets whether the dialog is cancelable or not. |
open AlertDialog.Builder! |
setCursor(cursor: Cursor!, listener: OnClickListener!, labelColumn: String!) Set a list of items, which are supplied by the given |
open AlertDialog.Builder! |
setCustomTitle(@Nullable customTitleView: View?) Set the title using the custom view |
open AlertDialog.Builder! |
Set the resource id of the |
open AlertDialog.Builder! |
Set the |
open AlertDialog.Builder! |
setIconAttribute(@AttrRes attrId: Int) Set an icon as supplied by a theme attribute. |
open AlertDialog.Builder! |
setInverseBackgroundForced(useInverseBackground: Boolean) Sets the Dialog to use the inverse background, regardless of what the contents is. |
open AlertDialog.Builder! |
setItems(@ArrayRes itemsId: Int, listener: OnClickListener!) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. |
open AlertDialog.Builder! |
setItems(items: Array<CharSequence!>!, listener: OnClickListener!) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. |
open AlertDialog.Builder! |
setMessage(@StringRes messageId: Int) Set the message to display using the given resource id. |
open AlertDialog.Builder! |
setMessage(@Nullable message: CharSequence?) Set the message to display. |
open AlertDialog.Builder! |
setMultiChoiceItems(@ArrayRes itemsId: Int, checkedItems: BooleanArray!, listener: OnMultiChoiceClickListener!) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. |
open AlertDialog.Builder! |
setMultiChoiceItems(items: Array<CharSequence!>!, checkedItems: BooleanArray!, listener: OnMultiChoiceClickListener!) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. |
open AlertDialog.Builder! |
setMultiChoiceItems(cursor: Cursor!, isCheckedColumn: String!, labelColumn: String!, listener: OnMultiChoiceClickListener!) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. |
open AlertDialog.Builder! |
setNegativeButton(@StringRes textId: Int, listener: OnClickListener!) Set a listener to be invoked when the negative button of the dialog is pressed. |
open AlertDialog.Builder! |
setNegativeButton(text: CharSequence!, listener: OnClickListener!) Set a listener to be invoked when the negative button of the dialog is pressed. |
open AlertDialog.Builder! |
setNegativeButtonIcon(icon: Drawable!) Set an icon to be displayed for the negative button. |
open AlertDialog.Builder! |
setNeutralButton(@StringRes textId: Int, listener: OnClickListener!) Set a listener to be invoked when the neutral button of the dialog is pressed. |
open AlertDialog.Builder! |
setNeutralButton(text: CharSequence!, listener: OnClickListener!) Set a listener to be invoked when the neutral button of the dialog is pressed. |
open AlertDialog.Builder! |
setNeutralButtonIcon(icon: Drawable!) Set an icon to be displayed for the neutral button. |
open AlertDialog.Builder! |
setOnCancelListener(onCancelListener: OnCancelListener!) Sets the callback that will be called if the dialog is canceled. |
open AlertDialog.Builder! |
setOnDismissListener(onDismissListener: OnDismissListener!) Sets the callback that will be called when the dialog is dismissed for any reason. |
open AlertDialog.Builder! |
setOnItemSelectedListener(listener: OnItemSelectedListener!) Sets a listener to be invoked when an item in the list is selected. |
open AlertDialog.Builder! |
setOnKeyListener(onKeyListener: OnKeyListener!) Sets the callback that will be called if a key is dispatched to the dialog. |
open AlertDialog.Builder! |
setPositiveButton(@StringRes textId: Int, listener: OnClickListener!) Set a listener to be invoked when the positive button of the dialog is pressed. |
open AlertDialog.Builder! |
setPositiveButton(text: CharSequence!, listener: OnClickListener!) Set a listener to be invoked when the positive button of the dialog is pressed. |
open AlertDialog.Builder! |
setPositiveButtonIcon(icon: Drawable!) Set an icon to be displayed for the positive button. |
open AlertDialog.Builder! |
setSingleChoiceItems(@ArrayRes itemsId: Int, checkedItem: Int, listener: OnClickListener!) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. |
open AlertDialog.Builder! |
setSingleChoiceItems(cursor: Cursor!, checkedItem: Int, labelColumn: String!, listener: OnClickListener!) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. |
open AlertDialog.Builder! |
setSingleChoiceItems(items: Array<CharSequence!>!, checkedItem: Int, listener: OnClickListener!) Set a list of items to be displayed in the dialog as the content, you will be notified of the selected item via the supplied listener. |
open AlertDialog.Builder! |
setSingleChoiceItems(adapter: ListAdapter!, checkedItem: Int, listener: OnClickListener!) Set a list of items to be displayed in the dialog as the content, you will be notified of |