B4J Library Lottie animation

This is an attempt to bring lottie files to b4j. The .jar and .xml are there to be used. Put them in the additional libraries folder.
Call from inside b4j (LottieView) as a custom view in the designer then set the path of the lottie file (.json) which is either
-a local file must be in Objects folder (as travelling.json) or
-a URL to the online json file as 'https://lottie.host/77b574f0-9dc3-4a9b-9ef0-59733c976fc9/sM7os2UHYj.json'
*The following properties are currently available at design time:
*Lottie Path (string)
*Lottie Speed (Int)
*Autoplay (Boolean)
The other properties are still fragile.
There is an example project which includes a textFlow class taken from the forum and it can be used to add fun to the lottie display and beautify the UI.
 

Attachments

  • LottieView.zip
    14 KB · Views: 14
  • b4j_lottie_Example.zip
    3.2 KB · Views: 13
Cookies are required to use this site. You must accept them to continue using the site. Learn more…