Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it is not working in fragment #1

Open
pritesh25 opened this issue Jul 1, 2020 · 1 comment
Open

it is not working in fragment #1

pritesh25 opened this issue Jul 1, 2020 · 1 comment

Comments

@pritesh25
Copy link

pritesh25 commented Jul 1, 2020

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)

@samlss
Copy link
Owner

samlss commented Jul 11, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants