java.lang.Object | ||
↳ | com.neomades.ui.dialog.Dialog | |
↳ | com.neomades.ui.dialog.AlertDialog |
An alert dialog has a title, a message an only one button.
Generally used to display a message to inform the user, with only one button. This dialog will be automatically closed when the user clicks on the button.
controller
method :
showDialog(Dialog)
.controller
method :
hideDialog()
.Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AlertDialog()
Constructs an alert dialog, without title and message.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
setButtonText(String text)
Sets the button text
| ||||||||||
void |
setButtonText(int resId)
Sets the button text.
| ||||||||||
void |
setDialogClickListener(DialogClickListener listener)
Sets the click listener to this dialog button.
| ||||||||||
void |
setMessage(String message)
Sets the message that will be displayed by this dialog
| ||||||||||
void |
setMessage(int resId)
Sets the message that will be displayed by this dialog
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs an alert dialog, without title and message.
Sets the button text.
resId | the id of the button text |
---|
Sets the click listener to this dialog button.
The method onClick(View) of the listener will be called when the button is clicked (null will be passed in parameter of this method)
The type of response used for this listener is
DIALOG_BUTTON_1
listener | the listener |
---|
Sets the message that will be displayed by this dialog
message | the message |
---|
Sets the message that will be displayed by this dialog
resId | the id of the message |
---|