Predefined Dialog

135 views.

A dialog is a small window that prompts the user to make a decision or enter additional information. A dialog does not fill the screen and is normally used for modal events that require users to take an action before they can proceed.

Building an Alert Dialog
The AlertDialog class allows you to build a variety of dialog designs and is often the only dialog class you’ll need.

Gradle

activity_main.xml

MainActivity.java

Output

 

You may also like...

Leave a Reply