pedant/sweet-alert-dialog ? reverse-engineered prompt

Reverse engineered prompt

Build me an Android library and a simple sample app for a really nice looking alert dialog, inspired by SweetAlert.

I want it to show the usual alert states like loading, success, error, warning, and a custom image, with a polished animated look instead of a plain system dialog. It should support a spinner style progress dialog, customizable title and message text, confirm and cancel buttons, and callbacks when each button is tapped. If possible, let the dialog change from one state to another after the user confirms, like turning a warning into a success message.

Please include a small demo screen that shows the different dialog styles and how to use them. Make it easy to customize colors, button labels, and the progress indicator. Use current Android best practices and look up any up to date docs online if you need to.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab