Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created June 1, 2018 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/93a782d7b17ae0e6fabc1c9a4039554b to your computer and use it in GitHub Desktop.
Save juucustodio/93a782d7b17ae0e6fabc1c9a4039554b to your computer and use it in GitHub Desktop.
Example of how use animations with Lottie in Xamarin.Forms applications - http://julianocustodio.com/lottie
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:DemoLottie"
xmlns:forms="clr-namespace:Lottie.Forms;assembly=Lottie.Forms"
x:Class="DemoLottie.MainPage">
<StackLayout>
<forms:AnimationView
x:Name="animationView"
Animation="xamarin_logo_2.json"
Loop="true"
AutoPlay="true"
HorizontalOptions="Center"
VerticalOptions="CenterAndExpand"/>
</StackLayout>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment