Xamarin.Android Native EasingInterpolator Twenty-eight different easing animation interpolators for Android. ported from EasingInterpolator by Masayuki Suda
This is a ported build, converted from Java to C# for use with the Xamarin MonoFramework.
Simply install the nuget package within your Xamarin.Android project and use as described below.
Package Install:
Install-Package Xama.JTPorts.EasingInterpolator -Version 1.0.2
.NET CLI:
dotnet add package Xama.JTPorts.EasingInterpolator --version 1.0.2
ValueAnimator valueAnimator = new ValueAnimator();
valueAnimator.SetInterpolator(new EasingInterpolator(Ease.CubicIn));
valueAnimator.Start();
ObjectAnimator objectAnimator = ObjectAnimator.OfFloat(View, "translationY", 0, 300);
objectAnimator.SetInterpolator(new EasingInterpolator(Ease.ElasticInOut)));
objectAnimator.Start();
If you want to support the work that I do and you find any of these libraries useful? Consider supporting it by joining stargazers for this repository. 🔭 🌠
or alternatively if you want to you can also buy me a coffee.
You know, only if you want to.