Skip to content

JoeTomkinson/Xama.JTPorts.EasingInterpolator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xamarin EasingInterpolator

platform API License: MIT Build: Passing NuGet

Namespace: Xama.JTPorts.EasingInterpolator

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.

Installation

NugetIcon

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

Usage

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();

Image of easing types

Support 💎

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.

Buy Me A Coffee

You know, only if you want to.

About

Xamarin.Android Native library containing twenty-eight different easing animation interpolators.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages