Awesome Animations for your Xamarin.Forms apps with Lottie

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024

ความคิดเห็น • 31

  • @tobler-one
    @tobler-one 3 ปีที่แล้ว +5

    Hey Gerald, thanks for the video :)
    After playing around with Lottie today I have little update:
    With the current version (4.0.8) it's now enough to just add it to your Xamarin.Forms project without the need to add something to your android project specifically. It's now also possible to use the .json files from the XF project by adding it as EmbeddedResource and setting your AnimationView's AnimationSource to EmbeddedResource as well.
    Side note: I had to set AnimationView.ImageAssetsFolder to some value (e.g. "images") to get android to work

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Great new information! Thank you so much for letting me know! I'll pin this comment so other people will find it easier :)
      Hope your app is looking awesome now with all these animations!

    • @D-Warlock
      @D-Warlock 3 ปีที่แล้ว +1

      Thank u, this comment was helpful to resolve an issue with my app that wasn't playing the animation with version 4.0.9, I solved it changing to EmbeddedResource and using this: Animation="resource://animation.json?assembly=MyApp" now it works correctly.

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Glad you found the solution!

  • @anton-io
    @anton-io 2 ปีที่แล้ว

    Thanks, it helped a lot. Implemented in 5 minutes.

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      That is amazing! Well done!

  • @josephtiotangco4820
    @josephtiotangco4820 4 ปีที่แล้ว +1

    WOWOWOWOW thanks for this man!, very helpful, i'm new in xamarin forms and this is what my app is lacking. thanks for this quick tutorial. Maybe you could discuss push notifications next if possible?. hihihi

    • @jfversluis
      @jfversluis  4 ปีที่แล้ว +1

      Thank you! Glad you like it! Push notifications is a good one but also a tough topic 😄 what would you like to see? Full end to end from implementing it you the devices to sending one on the server-side?

    • @josephtiotangco4820
      @josephtiotangco4820 4 ปีที่แล้ว +1

      @@jfversluis YEAAHHHHH!!!! hahaha

    • @jfversluis
      @jfversluis  4 ปีที่แล้ว

      Hm I’ll think about it! I have some blog posts about it in blog.verslu.is. They’re a bit older but hopefully should get you started

    • @josephtiotangco4820
      @josephtiotangco4820 4 ปีที่แล้ว

      @@jfversluis this is noted, will browse it immediately... :)

  • @jfversluis
    @jfversluis  4 ปีที่แล้ว

    Are you using animations in your app today? With Lottie or maybe with the built-in animation support from Xamarin.Forms? How do you use them?

  • @nickturner6227
    @nickturner6227 3 ปีที่แล้ว

    In Core project. Create Resources folder, add work.json, set to embedded resource. In xaml "Resources.work.json" and it works without needing it in the ios or android project!

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Very nice! Thanks for sharing!

  • @irynadoroshenko8832
    @irynadoroshenko8832 4 ปีที่แล้ว

    Our customers really like Lottie animations. Developers can use it in very simple way and there are lot of free samples of json in the internet. And maybe for the future you can show some interesting samples with XF build-in animations🧐. Thank you for the video☺️

    • @jfversluis
      @jfversluis  4 ปีที่แล้ว

      What are places where you typically use these animations? When loading? Or maybe when a screen has no database results?
      I will definitely be adding more scenarios!

    • @irynadoroshenko8832
      @irynadoroshenko8832 4 ปีที่แล้ว +1

      Gerald Versluis yes, when loading - the most popular case, when popups appear, at the first welcome screen, when the app lost internet connection, list/collection view empty state, tap on some buttons ....etc

    • @jfversluis
      @jfversluis  4 ปีที่แล้ว

      Oooh yeah for onboarding screens they are perfect as well!

  • @greeksinmars
    @greeksinmars 2 ปีที่แล้ว

    Very good library

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว +1

      It definitely is! Helps me cover up my sucky designer skills 😅

    • @greeksinmars
      @greeksinmars 2 ปีที่แล้ว

      @@jfversluis I would like to make a custom loader with Lottie...any suggestions or other best practices ?

  • @rezamohamed2112
    @rezamohamed2112 2 ปีที่แล้ว

    Is it possible to use Lottie, or is there some other way to add an animation to the XF splash screens? Particularly for iOS.

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Not unless you fake the splash screen which means you get past the real splash screen as soon as possible and then add a page that looks like a splash screen and does the animation but it’s actually a page in your app and when the animation is done it takes you to the first page

  • @taiwantoklip
    @taiwantoklip 2 ปีที่แล้ว

    Dear Gerald,I am using shell(with fly out menu) framework
    I know to add content (label/image view ...) in Xamarin.IOS ' "LaunchScreen.storyboard" to customize my splash screen
    But in Xamarin.Drid project,I can't see the layout file (even the "layout folder" )for MainActivity
    How can I customize my xamarin.from Droid MainActivity splash screen ?
    Thanks million

    • @jfversluis
      @jfversluis  2 ปีที่แล้ว

      Maybe this helps: docs.microsoft.com/xamarin/xamarin-forms/user-interface/splashscreen

  • @JuanSebastianR21
    @JuanSebastianR21 3 ปีที่แล้ว

    awsome!

  • @EdRawrDev5813
    @EdRawrDev5813 3 ปีที่แล้ว

    Dear sir Gerald , I've been trying to do this in xamarin forms but when i compile in Android I can't see the lottie animation, In IOS everything works fine. Any suggestions?

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      Does the json file have the right build action? Did you do all the necessary initialization (lines of code) for Android?

    • @EdRawrDev5813
      @EdRawrDev5813 3 ปีที่แล้ว

      @@jfversluis I was checking the Lottie's android documentation github.com/Baseflow/LottieXamarin/blob/master/Samples/Forms/Example.Forms.Droid/MainActivity.cs sees like they are not using init any more, I'm also using Lottie.Android and Android asset as build action,

    • @jfversluis
      @jfversluis  3 ปีที่แล้ว

      It seems there have been some updates since then indeed