Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Replaced /titanium/ links with /platform links


titleExample 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 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.