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.