jinatonic/confetti

explosion() is not working

ravisaini1990S opened this issue · 5 comments

Hey
I am trying to use the library and have called the explosion() -

CommonConfetti.explosion(container, centerX, centerY, new int[] {Color.RED}).oneShot();

its not showing whereas the raining-effects are working fine. Could you please have a look at the issue or anything i am missing in the explosion()

@jinatonic Could you please check it once

will take a look today.

The explosion sample with oneShot works fine.

https://github.com/jinatonic/confetti/blob/master/confetti-sample/src/main/java/com/github/jinatonic/confetti/sample/ExplosionActivity.java

You can check this by running the sample app, click on explosion, and click once.

Can you please verify that the centerX and centerY that you are passing in is valid?

Thanks for quick response. I was trying it in a dialog fragment, gave valid x, y position (even tried to give hardcoded center x , y value ) but that did't work . Will check it in sample app and let you know if the issue still there.

Its working fine..Thanks @jinatonic