Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Stop animation #74

Description

@wyzard

Hello!

Thank you for this awesome lib. I have a (maybe dumb) question.
How can I stop a started (infinte) animation?

I temporarily found that if I set the repeatCount field to 0 the animation stops, but I don't know if this is the right solution.

var pulseAnimation = RichPathAnimator.animate(pathName)
	.interpolator(LinearInterpolator())
	.scale(1f, 2f)
	.fillColor(0xFF00A951.toInt(), 0x0000A951)
	.repeatMode(RichPathAnimator.RESTART)
	.repeatCount(RichPathAnimator.INFINITE)
	.duration(1500)

pulseAnimation?.start()

Thank you for your help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions