Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I show a custom animation, like lottile's json file? #159

Open
GengJian opened this issue Nov 28, 2023 · 5 comments
Open

Can I show a custom animation, like lottile's json file? #159

GengJian opened this issue Nov 28, 2023 · 5 comments

Comments

@GengJian
Copy link

GengJian commented Nov 28, 2023

Existing methods are usually static Image or text,
can you expose a method that allows a custom view to be passed in?

@GengJian
Copy link
Author

lottie_iot_scan_radar.json

For example

{"v":"5.9.4","fr":25,"ip":0,"op":50,"w":735,"h":735,"nm":"搜索","ddd":0,"assets":[{"id":"image_0","w":735,"h":735,"u":"images/","p":"img_0.png","e":0}],"layers":[{"ddd":0,"ind":1,"ty":2,"nm":"搜索.png","cl":"png","refId":"image_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":0,"s":[0],"e":[360]},{"t":49}],"ix":10},"p":{"a":0,"k":[367.5,367.5,0],"ix":2,"l":2},"a":{"a":0,"k":[367.5,367.5,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ip":0,"op":50,"st":0,"bm":0}],"markers":[]}

@devahmedshendy
Copy link

@GengJian Would you be able to show lottie animation?

@hubin97
Copy link

hubin97 commented Sep 26, 2024

It would be better if an interface was exposed for custom animations
After looking at the source code, if you want to support Lotties, you can only fork it and modify or customize it yourself

@hubin97
Copy link

hubin97 commented Nov 21, 2024

support Lotties https://github.com/hubin97/ProgressHUD

@GengJian
Copy link
Author

GengJian commented Nov 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants