plattysoft / Leonids

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

Cannot set gravity TOP #33

Closed HuuNguyen312 closed 8 years ago

plattysoft commented 8 years ago

can you be more specific about the problem, steps to replicate, code, expected result and actual result?

HuuNguyen312 commented 8 years ago

Sorry. I have misunderstood the question. How to set Emit bottom to top ? Thanks.

plattysoft commented 8 years ago

gravity is used to specify the place from which the particles emit from the view, it is used as "alignment", which is the meaning gravity has in Android layouting.

If you want particles to move upwards, then you need to set the speed to be negative on the y component.

Not sure if this was your question, but I hope you have a more clear understanding now.

lsjwzh commented 8 years ago

You can set Angle to 270