-
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
Example of particle system on the background #88
Comments
The anchor view for the particle system is the one that will be used as a parent for the particle system, if you want it to be on the background you need something like this:
And make the FrameLayout be the anchor. I may need to check if the Particle system is added as a child at the end or at the beginning, to be sure, you can have another FrameLayout to be the first child of the FrameLayout and use that one as the anchor |
Thanks for fast reply, I really appreciate it.
Thanks man ;) |
Try adding another FrameLayout before the ScrollView and using that one as an anchor, that should work (I mentioned it briefly on my previous comment, I didn't remember how it was implemented 100%) |
Great, it works :)
|
If we have for example, some layout like this:
< ScrollView >
< LinearLayout >
-Button0
-Button1
-Button2
-Button3
...
< / LinearLayout >
</ ScrollView >
How to set ParticleSystem constructor which will emit particles behind all those buttons (I need particles to show only in background, not to fall in front of buttons)???
this will not work>
ParticleSystem(activity, maxParticles, drawableRedId, timeToLive, idOfLinearLayoutFromExampleAbove)
The text was updated successfully, but these errors were encountered: