question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Infinite Mode Reversing Animation on Android

See original GitHub issue

🐛 Bug Report

Recently, the repeat mode on Android was corrected so that the animation now repeats once it has completed. However, it seems that when the animation reaches the end, it reverses itself and plays the animation backwards.

In the previous version (3.x) if the Loop property was set to True it would repeat the animation indefinitely, as Infinite now does, however the animation repeated itself from the start and didn’t reverse itself.

This leads to some funny looking animations, as per the one below

untitled

On iOS, the Infinite mode restarts itself from the beginning, as expected.

Expected behavior

When the Inifinite animation reaches the end, it should start again from the beginning and not reverse itself.

Reproduction steps

  • Create an animation
  • Set its RepeatMode to Infinite

Configuration

Version: 4.0.4

Platform:

  • 📱 iOS
  • 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
martijn00commented, Oct 27, 2020

4.0.6 is online on nuget

1reaction
martinapapaliskacommented, Oct 27, 2020

I just made a PR that fixes this issue. It would be great to get a release as soon as possible. Link to the PR here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reversing an Animation - android
AnimationListener to original animation and in onAnimationEnd method start the reverse animation. Share.
Read more >
Animation resources
Set to "-1" to infinitely repeat or to a positive integer. ... Set to "reverse" to have the animation reverse direction with each...
Read more >
Infinite animation | Android Jetpack Compose #15 - YouTube
In this video we're gonna see how to use infinite animation in order to animate background color of composable. Actually we'll animate Box....
Read more >
Android Animation Example
Animations in android apps can be performed through XML or ... Here fade in and fade out are performed infinitely in reverse mode...
Read more >
android.view.animation.Animation.setRepeatMode java ...
INFINITE ); // Repeat animation infinitely animation.setRepeatMode(Animation.REVERSE); // Reverse animation at the end so the button will fade back in final ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found