plattysoft / Leonids

A Particle System for standard Android UI: http://plattysoft.github.io/Leonids/
Apache License 2.0
2.28k stars 396 forks source link

Particles z-positioning not correct, help! #24

Closed ynkm169 closed 9 years ago

ynkm169 commented 9 years ago

I put particle view emitter under another view. However, the particles are always showing on top of all other views, no matter what I do.

ynkm169 commented 9 years ago

meah............ actually i just set parentViewId and its fine now.....gooooooooooooood

plattysoft commented 9 years ago

Yes, that is what the anchor view is for. Good that you found it yourself.

salvonos commented 7 years ago

I have same issue; How can set parentViewId? I have tried using: int parentId = ((View) bk_main.getParent()).getId(); But is always on top.

plattysoft commented 7 years ago

parentViewId is the id of the view you want to be the parent of the ParticleSytem.

So it is whatever view you have set up in your hierarchy.