tyrantgit / ExplosionField

explosive dust effect for views
3.6k stars 578 forks source link

No working in dialog. #12

Open ghost opened 8 years ago

ghost commented 8 years ago

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; }