how can i use lottie animation in custom progress dialog.
i know how implement custom progress bar with lottie but i want progress dialog.
i have my animation in json format. but i dont know how make custom progress dialog. in gradle i write this line
implementation 'com.airbnb.android:lottie:3.4.4'
and new class
import android.app.ProgressDialog;
import android.content.Context;
import android.view.animation.Animation;
public class MyProgressDialog extends ProgressDialog {
public MyProgressDialog(Context context) {
super(context,R.style.NewDialog);
// TODO Auto-generated constructor stub
}
}
i found this video but it is coded by kotlin. i want use java
i found solution
1- make one xml layout for new design. "loading.json" is json format of animation in asset folder.
2-create new java class
}
3-call dialog in main activity