confetti
confetti copied to clipboard
An Android particle system library for displaying confetti!
First of all, I'm sorry I'm not good at English. I think ConfettiAnimationListener.onAnimationEnd is called twice. first call from *  second call from *  Is it possible to...
For example, if you want to init Confetti in some util class on presenters layer, maybe you want to wrote something like this: ``` util class: fun initParticles() = ConfettiManager(params)...
This is my onCreateView ```Kotlin override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? { val view = inflater.inflate(R.layout.fragment_home, container, false) viewContainer = container } ``` My app crashed everytime...
I was not able to integrate a confetti generatot with custom bitmap for Explosion Effect ? Is there any specific method i should use for Explosion type to change the...
Hello, Thank you for this wonderful library. I'm having a little trouble understanding if I'm doing things the right way. I created my own custom confetto using `ConfettoGenerator` and then...
Hey, I fixed the crash on the terminate method: ``` /** * Terminate the currently running animation if there is any. */ public void terminate() { if (animator != null)...
`int[] confettiColors = new int[]{R.color.red, R.color.blue, R.color.green, R.color.black, R.color.orange, R.color.darkergray}; ConfettiSource confettiSource = new ConfettiSource(linearLayout.getWidth(), linearLayout.getHeight()); CommonConfetti.rainingConfetti(linearLayout, confettiSource, confettiColors ).infinite();` i have done this code ....is that sufficient for showing...
This PR allows the user to specify a shape type if he wants a specific type. Example - ``` CommonConfetti.rainingConfetti(container, new int[] { Color.BLACK, Color.WHITE, ContextCompat.getColor(this, R.color.colorAccent), ContextCompat.getColor(this, R.color.colorPrimary)), Shape.MIXED)...
A `.shape(intArrayOf())` should be added in `CommonConfetti` so it is easier to add shapes in one single line.
config: `new ConfettiManager(this, this, source, container) .setEmissionDuration(ConfettiManager.INFINITE_DURATION) .setTTL(CONFETTI_LIFE_DURATION_MS) .setVelocityX(0, velocitySlow) .setVelocityY(velocityNormal, velocitySlow) .setRotationalVelocity(ROTATIONAL_VELOCITY, ROTATIONAL_DEVIATION) .setEmissionRate(CONFETTI_PER_SECOND);` works on samsung/asus/etc. but shows nothing on honor 8x (android 9, JSN-L22) and huawei p20...