Giter VIP home page Giter VIP logo

Comments (5)

vincentcastagna avatar vincentcastagna commented on July 24, 2024 1

Got the same prob with XF . Had to put the animationView in a layout with both vertical and layout option to FillAndExpand, and put a width and height request to the lottie animation ...

from lottiexamarin.

rguilluy avatar rguilluy commented on July 24, 2024 1

Indeed, adding withRequest & HeightRequest to the AnimationView fix the the bug.

from lottiexamarin.

simonegarau avatar simonegarau commented on July 24, 2024

Have you solved this? I have the same problem...

from lottiexamarin.

cuiti avatar cuiti commented on July 24, 2024

Got here by googling that warning, I'm getting it using the native Android version of Lottie. I'd appreciate if anyone has a clue of what's going on :)

from lottiexamarin.

rguilluy avatar rguilluy commented on July 24, 2024

Same problem here, in Xamarin Forms, but occurs only on android device (or simulator) :

<StackLayout x:Name="layoutEmptyList" Grid.Row="2" Grid.Column="0" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="Black" Padding="2">
<StackLayout Orientation="Vertical" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" BackgroundColor="White">
       <StackLayout  VerticalOptions="Center"  HeightRequest="120">
            <forms:AnimationView x:Name="emptyAnimation" Animation="empty_list.json" Loop="true" AutoPlay="true" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" />
        </StackLayout>
        </StackLayout>
 </StackLayout>

The animation does show up sometimes, but half the time it doesn't and I can see this warning in logs (this warning is spammed cause of the loop propertie I guess) :

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

from lottiexamarin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.