Open pritesh25 opened 4 years ago
I am using kotlin language for development. i implemented bloom in fragment and i passed requiredActivity() and even i tried to pass activity but it not display any animation.
here is snipper
val mBloom = Bloom.with(activity)
.setParticleRadius(10F)
.setShapeDistributor(StarShapeDistributor())
.setEffector(
BloomEffector.Builder()
.setDuration(2000)
.setRotationSpeedRange(0.01f, 0.05f)
.setSpeedRange(0.1f, 0.5f)
.setAcceleration(0.00025f, 90)
.setAnchor((view.width / 2).toFloat(), view.height.toFloat())
.setFadeOut(500, AccelerateInterpolator())
.build()
)
mBloom.boom(view)
Sorry to reply you so late, are you make sure your 'view' is visible? Only has animation effect when the view is visible and the width and height are not 0. Please contact me with any questions, thanks!
I am using kotlin language for development. i implemented bloom in fragment and i passed requiredActivity() and even i tried to pass activity but it not display any animation.
here is snipper
val mBloom = Bloom.with(activity)
.setParticleRadius(10F)
.setShapeDistributor(StarShapeDistributor())
.setEffector(
BloomEffector.Builder()
.setDuration(2000)
.setRotationSpeedRange(0.01f, 0.05f)
.setSpeedRange(0.1f, 0.5f)
.setAcceleration(0.00025f, 90)
.setAnchor((view.width / 2).toFloat(), view.height.toFloat())
.setFadeOut(500, AccelerateInterpolator())
.build()
)
mBloom.boom(view)