Skip to end of metadata
Go to start of metadata

Demonstrates basic use of an AlertDialog.

Example App Source Location


You can find this example app in the Alloy repository under samples/apps/ui/alertdialog. Check the instructions how to run these sample projects.

An AlertDialog presents a modal dialog with a title, message and one or more buttons. On Android, you add add a custom view to an  AlertDialog, which replaces any declared buttons. 

The main index.xml view declares the AlertDialog element, and a Button that calls the showAlert() function defined by the main view-controller to show the dialog.


See Also