How to show Sweet Alert Dialog in android?

Sweet Alert Dialog in android

UI is one of the most important part of android application development. Use some lightly animated UI while you are developing an application. You should use this library to show sweet alert dialog in android. A user will interact with the application through your app design. If you want to design a great, functional mobile app interface, Design Principles are hugely important. Design principles (commonly called heuristics) are loose guidelines that designers can stick to in order to improve the quality of a user interface design.so use beautiful or sweet or animated dialogs in your application. Animated AlertDialog android, sweet Alertdialog, Beautiful AlertDialog android

AlertDialog
Animated AlertDialoig android, sweet Alertdialog, Beautiful AlertDialog android, Stylish Alert Dialog

There are multiple open source free libs available in android here are some

  1. sweet alert
  2. SweetDialog 2

To use sweet alert in your project add below dependency.


Simple Alert Dialog User

Showing sweet alert dialog in android

 

Sweet Alert Dialog in android 1

 


Simple Alert Dialog User with description

Sweet Alert Dialog in android 2

 


A error message

Sweet Alert Dialog in android 3

 


Warning message

Sweet Alert Dialog in android 4

 


Success message

Sweet Alert Dialog in android 5

 


Message with a custom icon

Sweet Alert Dialog in android 6

 


Bind the listener to confirm button:


Show the cancel button and bind listener to it:


Change the dialog style after confirming

SPECIAL THANKS TO https://github.com/pedant/sweet-alert-dialog

Some good UI of Android design on android teachers Here

Sr. Android Developer

Imtiyaz Khalani

1039total visits,22visits today

Related posts

Leave a Comment