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
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
toInfinite
Configuration
Version: 4.0.4
Platform:
- 📱 iOS
- 🤖 Android
- 🏁 WPF
- 🌎 UWP
- 🍎 MacOS
- 📺 tvOS
- 🐒 Xamarin.Forms
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
4.0.6 is online on nuget
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