-
Notifications
You must be signed in to change notification settings - Fork 13
Description
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)