Baseflow / Baseflow/LottieXamarin

Animation lottie in nuget as EmbeddedResource not working

Open
#356 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
253
PR merge metrics
No merged PRs in 30d

Description

## 💬 Questions and Help

Hello,
I have created an nuget for internal project at work with specific ContentView who use lottie animation as json.
I am trying to call animation stored in same project as embedded resource on android device. i d'ont want animation file in android project...

xxx.yy.Ui is current nuget name/namespace
Resources.Animations.loader.json is folder name & file name

![Img1](https://user-images.githubusercontent.com/3251510/133282977-ff9a3ee9-f80d-4954-8196-9e806f91e896.png)
![Img2](https://user-images.githubusercontent.com/3251510/133282981-d0ea0ee0-06c7-423f-b0ac-7a18d3c92ba0.png)

No animation is displayed .. any idea ?

For questions or help we recommend checking:

- The [Lottie tag in Stack Overflow](https://stackoverflow.com/questions/tagged/lottie)
- The [General slack channel in the Xamarin Slack](https://xamarinchat.herokuapp.com/)
- Ask your question in the [Xamarin Forums](https://forums.xamarin.com/)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Android case using the shown AnimationView configuration and the embedded loader.json in the xxx.yy.UI NuGet. Check how the resource is packaged and resolved through AnimationSource="EmbeddedResource"; done means the animation displays from the NuGet without copying the JSON into the Android project.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, json
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.