-
Notifications
You must be signed in to change notification settings - Fork 29
08 Creating and showing a dialog
Once an instance of the class MaterialDialog.Builder has been configured by using the setter methods discussed in the previous sections of this documentation, the builder's method create():MaterialDialog can be used to create the dialog as an instance of the class MaterialDialog. Such a dialog instance can be shown by calling its show-method.
An easier way of showing the dialog, which is created by a MaterialDialog.Builder, is to call the builder's show-method. This method implicitly calls the create-method to create the dialog, as well as the dialog's show-method to show the dialog on the screen.
After a MaterialDialog has been shown using its show-method, its attributes can still be changed. The class therefore provides the methods, which are also provided by the builder. Additionaly getter methods, which allow to retrieve a dialog's attributes, are also provided.
To manually close a previously shown dialog, its dismiss-method should be called.