What is SweetAlert dialog? SweetAlert dialog is a dialog that was customized dialog massage with a beautiful style library. So you can learn more about Sweet Alert Dialog from GitHub here.
Android Contents:
A previous article has a Yes/No dialog message, but now I show more about the Dialog types.
For this article customize dialog message with a beautiful dialog. For example, I create OK/Cancel dialog message.

1. Create a new android project
For this example:
- Project name: Sweet Dialog
- Package name: com.eangkor.sweetdialog
- Language: Java
2. Go to Gradle Scripts and expand, double-click on build.gradle (Module)

Adding the Sweet Alert library to dependency and click on Sync now
3. In the activity_main.xml
Go to app -> res -> layout -> activity_main.xml, and add a button
4. In the MainActivity.java
Final Result:
