Forum Libraries, Components, and Plugins
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

LottieAnimationView not displayed

Hi! I am trying to use Lottie to show animations, but I have a problem when I debug:

LottieAnimationView not displayed because it is too large to fit into a software layer (or drawing cache), needs 9072000 bytes, only 8294400 available

My XAML code:

<ContentPage.Content>
    <StackLayout VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
        <forms:AnimationView
            x:Name="AnimationView"
            Animation="data.json"
            AutoPlay="True" Loop="true"
            VerticalOptions="FillAndExpand"
            HorizontalOptions="FillAndExpand"
            Scale="0.2"/>
    </StackLayout>
</ContentPage.Content>

Can anyone help me to fix this problem?

Answers

  • ObrockiObrocki Member ✭✭

    What about scaling the visuals in the data.json so that you don't have to apply Scale="2"?

  • JamesLaveryJamesLavery GBBeta, University ✭✭✭✭✭
    I had this problem. I think the solution was to specify HeightRequest and WidthRequest. I can check tomorrow.
Sign In or Register to comment.