You can add this to the library for it to work with dialog:
public static ExplosionField attach2Window(ViewGroup rootView, Activity activity) { ExplosionField explosionField = new ExplosionField(activity); rootView.addView(explosionField, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); return explosionField; }
You can add this to the library for it to work with dialog:
public static ExplosionField attach2Window(ViewGroup rootView, Activity activity) { ExplosionField explosionField = new ExplosionField(activity); rootView.addView(explosionField, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); return explosionField; }