On click to show the dialog this error occurs
java.lang.RuntimeException: Unknown animation-name: cn.pedant.SweetAlert.Rotate3dAnimation error:null
Anybody have solution step by step?
Add this library to app/build.gradle
:
dependencies {
...
implementation 'com.github.f0ris.sweetalert:library:1.5.1'
}
Usage:
SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Loading");
pDialog.setCancelable(false);
pDialog.show();
for more usages about progress read THIS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With