-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Particle System does not show in a Fragment #92
Comments
i face same problem |
Solution is to delay action of generating particles |
That is not the best solution, this is most likely the same problem as for Activities regarding that while onCreate the views are not yet measured. The suggested solution is to observe the view tree . For more details see #22 |
@plattysoft why not make it as internal implementation of lib to start anim when views are measured |
if you create the ParticleSystem after the views are measured, you can don't get a ViewTreeObserver callback, so the system does not know if the views are been measured yet, or if they have been measured before creating. |
I have a fragment:
AnimationFragment.java
I have a view in Fragment with animationBox id:
Notice I initialized the ParticleSystem in onCreateView. When I run the app, nothing shows. Can the Particle System with with Fragments?
The text was updated successfully, but these errors were encountered: